From 2bb04a419d79a8a0f26e425f4786cffd773b34fa Mon Sep 17 00:00:00 2001 From: jialin Date: Wed, 3 Jun 2026 17:08:21 +0800 Subject: [PATCH] fix: sshkey, storage selection displayName --- src/locales/en-US/gpuservice.ts | 2 +- src/locales/ja-JP/gpuservice.ts | 2 +- src/locales/ru-RU/gpuservice.ts | 2 +- src/locales/tr-TR/gpuservice.ts | 2 +- src/locales/zh-CN/gpuservice.ts | 2 +- src/pages/gpu-service/instances/forms/storage-volume.tsx | 2 +- src/pages/gpu-service/public-keys/services/use-query-sshkeys.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/locales/en-US/gpuservice.ts b/src/locales/en-US/gpuservice.ts index aa08d07c..d2dd9e4a 100644 --- a/src/locales/en-US/gpuservice.ts +++ b/src/locales/en-US/gpuservice.ts @@ -148,7 +148,7 @@ export default { 'gpuservice.storage.temporary.tips': 'Data is cleared when the instance stops.', 'gpuservice.storage.persistentVolume.tips': - 'Data persists across restarts and is deleted only when the instance is terminated. Cannot be shared with other instances.', + 'Data persists across instance restarts. Persistent volumes remain intact after instance termination and can be shared by multiple instances.', 'gpuservice.storage.persistentVolume.required': 'Please select a storage', 'gpuservice.storage.persistentVolume.capacity': 'Capacity (GB)', 'gpuservice.storage.persistentVolume.capacity.required': diff --git a/src/locales/ja-JP/gpuservice.ts b/src/locales/ja-JP/gpuservice.ts index 3e75e583..1946e18d 100644 --- a/src/locales/ja-JP/gpuservice.ts +++ b/src/locales/ja-JP/gpuservice.ts @@ -159,6 +159,6 @@ export default { 'gpuservice.storage.temporary.tips': 'Data is cleared when the instance stops.', 'gpuservice.storage.persistentVolume.tips': - 'Data persists across restarts and is deleted only when the instance is terminated. Cannot be shared with other instances.', + 'Data persists across instance restarts. Persistent volumes remain intact after instance termination and can be shared by multiple instances.', 'gpuservice.form.storage.select': 'ストレージを選択' }; diff --git a/src/locales/ru-RU/gpuservice.ts b/src/locales/ru-RU/gpuservice.ts index e64b0120..6e98d10a 100644 --- a/src/locales/ru-RU/gpuservice.ts +++ b/src/locales/ru-RU/gpuservice.ts @@ -158,6 +158,6 @@ export default { 'gpuservice.storage.temporary.tips': 'Data is cleared when the instance stops.', 'gpuservice.storage.persistentVolume.tips': - 'Data persists across restarts and is deleted only when the instance is terminated. Cannot be shared with other instances.', + 'Data persists across instance restarts. Persistent volumes remain intact after instance termination and can be shared by multiple instances.', 'gpuservice.form.storage.select': 'Выберите хранилище' }; diff --git a/src/locales/tr-TR/gpuservice.ts b/src/locales/tr-TR/gpuservice.ts index 520dfbe6..59ffe26f 100644 --- a/src/locales/tr-TR/gpuservice.ts +++ b/src/locales/tr-TR/gpuservice.ts @@ -157,6 +157,6 @@ export default { 'gpuservice.storage.temporary.tips': 'Data is cleared when the instance stops.', 'gpuservice.storage.persistentVolume.tips': - 'Data persists across restarts and is deleted only when the instance is terminated. Cannot be shared with other instances.', + 'Data persists across instance restarts. Persistent volumes remain intact after instance termination and can be shared by multiple instances.', 'gpuservice.form.storage.select': 'Depolamayı Seç' }; diff --git a/src/locales/zh-CN/gpuservice.ts b/src/locales/zh-CN/gpuservice.ts index b55d9c38..fa9f9c7f 100644 --- a/src/locales/zh-CN/gpuservice.ts +++ b/src/locales/zh-CN/gpuservice.ts @@ -138,7 +138,7 @@ export default { 'gpuservice.storage.persistentVolume': '持久', 'gpuservice.storage.temporary.tips': '实例停止后,数据将被清除。', 'gpuservice.storage.persistentVolume.tips': - '数据在实例重启后仍会保留,仅在实例被终止时删除。无法被其它实例共享。', + '数据在实例重启后仍会保留。持久卷不会随实例终止而删除,并可被多个实例共享。', 'gpuservice.storage.persistentVolume.required': '请选择存储', 'gpuservice.storage.persistentVolume.capacity': '容量(GB)', 'gpuservice.storage.persistentVolume.capacity.required': '请输入容量', diff --git a/src/pages/gpu-service/instances/forms/storage-volume.tsx b/src/pages/gpu-service/instances/forms/storage-volume.tsx index 7ecd92d6..d7f6e32f 100644 --- a/src/pages/gpu-service/instances/forms/storage-volume.tsx +++ b/src/pages/gpu-service/instances/forms/storage-volume.tsx @@ -42,7 +42,7 @@ const StorageVolume = ({ const storageOptions = useMemo( () => (storageData?.items || []).map((item) => ({ - label: `${item.name} / ${item.spec?.capacity ?? '-'}`, + label: `${item.displayName || item.name} / ${item.spec?.capacity ?? '-'}`, value: item.name })), [storageData] diff --git a/src/pages/gpu-service/public-keys/services/use-query-sshkeys.ts b/src/pages/gpu-service/public-keys/services/use-query-sshkeys.ts index 0043fae2..4ef3bbd0 100644 --- a/src/pages/gpu-service/public-keys/services/use-query-sshkeys.ts +++ b/src/pages/gpu-service/public-keys/services/use-query-sshkeys.ts @@ -16,7 +16,7 @@ export default function useQuerySshkeys() { >({ key: 'sshkeyOptions', fetchList, - getLabel: (item) => item?.name as string, + getLabel: (item) => item.displayName || (item?.name as string), getValue: (item) => item?.name as string });