fix: sshkey, storage selection displayName
This commit is contained in:
@@ -148,7 +148,7 @@ export default {
|
|||||||
'gpuservice.storage.temporary.tips':
|
'gpuservice.storage.temporary.tips':
|
||||||
'Data is cleared when the instance stops.',
|
'Data is cleared when the instance stops.',
|
||||||
'gpuservice.storage.persistentVolume.tips':
|
'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.required': 'Please select a storage',
|
||||||
'gpuservice.storage.persistentVolume.capacity': 'Capacity (GB)',
|
'gpuservice.storage.persistentVolume.capacity': 'Capacity (GB)',
|
||||||
'gpuservice.storage.persistentVolume.capacity.required':
|
'gpuservice.storage.persistentVolume.capacity.required':
|
||||||
|
|||||||
@@ -159,6 +159,6 @@ export default {
|
|||||||
'gpuservice.storage.temporary.tips':
|
'gpuservice.storage.temporary.tips':
|
||||||
'Data is cleared when the instance stops.',
|
'Data is cleared when the instance stops.',
|
||||||
'gpuservice.storage.persistentVolume.tips':
|
'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': 'ストレージを選択'
|
'gpuservice.form.storage.select': 'ストレージを選択'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -158,6 +158,6 @@ export default {
|
|||||||
'gpuservice.storage.temporary.tips':
|
'gpuservice.storage.temporary.tips':
|
||||||
'Data is cleared when the instance stops.',
|
'Data is cleared when the instance stops.',
|
||||||
'gpuservice.storage.persistentVolume.tips':
|
'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': 'Выберите хранилище'
|
'gpuservice.form.storage.select': 'Выберите хранилище'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -157,6 +157,6 @@ export default {
|
|||||||
'gpuservice.storage.temporary.tips':
|
'gpuservice.storage.temporary.tips':
|
||||||
'Data is cleared when the instance stops.',
|
'Data is cleared when the instance stops.',
|
||||||
'gpuservice.storage.persistentVolume.tips':
|
'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ç'
|
'gpuservice.form.storage.select': 'Depolamayı Seç'
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ export default {
|
|||||||
'gpuservice.storage.persistentVolume': '持久',
|
'gpuservice.storage.persistentVolume': '持久',
|
||||||
'gpuservice.storage.temporary.tips': '实例停止后,数据将被清除。',
|
'gpuservice.storage.temporary.tips': '实例停止后,数据将被清除。',
|
||||||
'gpuservice.storage.persistentVolume.tips':
|
'gpuservice.storage.persistentVolume.tips':
|
||||||
'数据在实例重启后仍会保留,仅在实例被终止时删除。无法被其它实例共享。',
|
'数据在实例重启后仍会保留。持久卷不会随实例终止而删除,并可被多个实例共享。',
|
||||||
'gpuservice.storage.persistentVolume.required': '请选择存储',
|
'gpuservice.storage.persistentVolume.required': '请选择存储',
|
||||||
'gpuservice.storage.persistentVolume.capacity': '容量(GB)',
|
'gpuservice.storage.persistentVolume.capacity': '容量(GB)',
|
||||||
'gpuservice.storage.persistentVolume.capacity.required': '请输入容量',
|
'gpuservice.storage.persistentVolume.capacity.required': '请输入容量',
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ const StorageVolume = ({
|
|||||||
const storageOptions = useMemo(
|
const storageOptions = useMemo(
|
||||||
() =>
|
() =>
|
||||||
(storageData?.items || []).map((item) => ({
|
(storageData?.items || []).map((item) => ({
|
||||||
label: `${item.name} / ${item.spec?.capacity ?? '-'}`,
|
label: `${item.displayName || item.name} / ${item.spec?.capacity ?? '-'}`,
|
||||||
value: item.name
|
value: item.name
|
||||||
})),
|
})),
|
||||||
[storageData]
|
[storageData]
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export default function useQuerySshkeys() {
|
|||||||
>({
|
>({
|
||||||
key: 'sshkeyOptions',
|
key: 'sshkeyOptions',
|
||||||
fetchList,
|
fetchList,
|
||||||
getLabel: (item) => item?.name as string,
|
getLabel: (item) => item.displayName || (item?.name as string),
|
||||||
getValue: (item) => item?.name as string
|
getValue: (item) => item?.name as string
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user