diff --git a/src/locales/en-US/common.ts b/src/locales/en-US/common.ts index b559e924..6449bf32 100644 --- a/src/locales/en-US/common.ts +++ b/src/locales/en-US/common.ts @@ -55,6 +55,7 @@ export default { 'common.button.viewevent': 'View Events', 'common.button.recreate': 'Recreate', 'common.table.operation': 'Operations', + 'common.table.creator': 'Creator', 'common.table.createTime': 'Created', 'common.table.updateTime': 'Updated', 'common.table.description': 'Description', diff --git a/src/locales/ja-JP/common.ts b/src/locales/ja-JP/common.ts index 486ed3a4..68bfed19 100644 --- a/src/locales/ja-JP/common.ts +++ b/src/locales/ja-JP/common.ts @@ -55,6 +55,7 @@ export default { 'common.button.viewevent': 'イベントを表示', 'common.button.recreate': '再作成', 'common.table.operation': '操作', + 'common.table.creator': '作成者', 'common.table.createTime': '作成日時', 'common.table.updateTime': '更新日時', 'common.table.description': '説明', diff --git a/src/locales/ru-RU/common.ts b/src/locales/ru-RU/common.ts index e570e644..b9fa78ec 100644 --- a/src/locales/ru-RU/common.ts +++ b/src/locales/ru-RU/common.ts @@ -55,6 +55,7 @@ export default { 'common.button.viewevent': 'Просмотр событий', 'common.button.recreate': 'Пересоздать', 'common.table.operation': 'Действия', + 'common.table.creator': 'Создатель', 'common.table.createTime': 'Создано', 'common.table.updateTime': 'Обновлено', 'common.table.description': 'Описание', diff --git a/src/locales/tr-TR/common.ts b/src/locales/tr-TR/common.ts index 942c9a00..c92cfaa1 100644 --- a/src/locales/tr-TR/common.ts +++ b/src/locales/tr-TR/common.ts @@ -55,6 +55,7 @@ export default { 'common.button.viewevent': 'Olayları Görüntüle', 'common.button.recreate': 'Yeniden Oluştur', 'common.table.operation': 'İşlemler', + 'common.table.creator': 'Oluşturan', 'common.table.createTime': 'Oluşturulma', 'common.table.updateTime': 'Güncellenme', 'common.table.description': 'Açıklama', diff --git a/src/locales/zh-CN/common.ts b/src/locales/zh-CN/common.ts index 5a9b6c48..9b49cca0 100644 --- a/src/locales/zh-CN/common.ts +++ b/src/locales/zh-CN/common.ts @@ -52,6 +52,7 @@ export default { 'common.button.viewlog': '查看日志', 'common.button.viewevent': '查看事件', 'common.table.operation': '操作', + 'common.table.creator': '创建者', 'common.table.createTime': '创建时间', 'common.table.updateTime': '更新时间', 'common.table.description': '描述', diff --git a/src/pages/api-keys/hooks/use-keys-columns.tsx b/src/pages/api-keys/hooks/use-keys-columns.tsx index 266ee88e..90a91dec 100644 --- a/src/pages/api-keys/hooks/use-keys-columns.tsx +++ b/src/pages/api-keys/hooks/use-keys-columns.tsx @@ -109,17 +109,6 @@ const useModelsColumns = ({ ) }, - { - title: intl.formatMessage({ id: 'users.table.username' }), - dataIndex: 'user_name', - key: 'user_name', - hidden: !is_admin, - render: (text: string, record: ListItem) => ( - - {text || '-'} - - ) - }, { title: intl.formatMessage({ id: 'apikeys.form.expiretime' }), dataIndex: 'expires_at', @@ -187,6 +176,17 @@ const useModelsColumns = ({ {text} ) }, + { + title: intl.formatMessage({ id: 'common.table.creator' }), + dataIndex: 'user_name', + key: 'user_name', + hidden: !is_admin, + render: (text: string) => ( + + {text || '-'} + + ) + }, { title: intl.formatMessage({ id: 'common.table.createTime' }), dataIndex: 'created_at',