fix: sshkey, storage selection displayName

This commit is contained in:
jialin
2026-06-03 18:28:31 +08:00
committed by jialin
parent 8e31b71668
commit 2bb04a419d
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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':
+1 -1
View File
@@ -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': 'ストレージを選択'
};
+1 -1
View File
@@ -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': 'Выберите хранилище'
};
+1 -1
View File
@@ -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ç'
};
+1 -1
View File
@@ -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': '请输入容量',
@@ -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]
@@ -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
});