diff --git a/ui/public/locales/en.json b/ui/public/locales/en.json
index 86a74384cb7..bd3e6e6a54c 100644
--- a/ui/public/locales/en.json
+++ b/ui/public/locales/en.json
@@ -595,6 +595,7 @@
"label.crosszones": "Cross zones",
"label.currency": "Currency",
"label.current": "Current",
+"label.current.storage": "Current storage",
"label.currentpassword": "Current password",
"label.custom": "Custom",
"label.customconstrained": "Custom constrained",
@@ -1916,6 +1917,7 @@
"label.select.tier": "Select Network Tier",
"label.select.zones": "Select zones",
"label.select.2fa.provider": "Select the provider",
+"label.selected.storage": "Selected storage",
"label.self": "Mine",
"label.selfexecutable": "Self",
"label.semanticversion": "Semantic version",
@@ -3082,7 +3084,7 @@
"message.migrate.resource.to.ss": "Please confirm that you want to migrate this resource to another secondary storage.",
"message.migrate.router.confirm": "Please confirm the host you wish to migrate the router to:",
"message.migrate.systemvm.confirm": "Please confirm the host you wish to migrate the system VM to:",
-"message.migrate.volume": "Please confirm that you want to migrate this volume to another primary storage.",
+"message.migrate.volume": "Please confirm that you want to migrate the volume \"{volume}\" from \"{storage}\" to another primary storage.",
"message.migrate.volume.failed": "Migrating volume failed.",
"message.migrate.volume.pool.auto.assign": "Primary storage for the volume will be automatically chosen based on the suitability and Instance destination",
"message.migrate.volume.processing": "Migrating volume...",
diff --git a/ui/public/locales/pt_BR.json b/ui/public/locales/pt_BR.json
index 9d64cc27150..54481775a09 100644
--- a/ui/public/locales/pt_BR.json
+++ b/ui/public/locales/pt_BR.json
@@ -445,6 +445,7 @@
"label.crosszones": "Inter zonas",
"label.currency": "Moeda",
"label.current": "Atual",
+"label.current.storage": "Armazenamento atual",
"label.currentpassword": "Senha antiga",
"label.custom": "Customizado",
"label.customconstrained": "Customizado limitado",
@@ -1442,6 +1443,7 @@
"label.select.projects": "Selecionar projetos",
"label.select.tier": "Selecionar camada",
"label.select.zones": "Selecionar zonas",
+"label.selected.storage": "Armazenamento selecionado",
"label.self": "Meus",
"label.selfexecutable": "Auto",
"label.semanticversion": "Vers\u00e3o sem\u00e2ntica",
@@ -2235,7 +2237,7 @@
"message.migrate.instance.to.ps": "Por favor confirme que voc\u00ea deseja migrar a inst\u00e2ncia para outro armazenamento prim\u00e1rio.",
"message.migrate.router.confirm": "Por favor confirme o host que voc\u00ea deseja migrar o roteador para:",
"message.migrate.systemvm.confirm": "Por favor confirme o host para o qual voc\u00ea deseja migrar a VM de sistema:",
-"message.migrate.volume": "Por favor confirme que voc\u00ea deseja migrar o volume para outro armazenamento prim\u00e1rio.",
+"message.migrate.volume": "Por favor confirme que voc\u00ea deseja migrar o volume \"{volume}\" do armazenamento prim\u00e1rio \"{storage}\" para outro.",
"message.migrate.volume.failed": "Falha ao migrar volume",
"message.migrate.volume.processing": "Migrando volume...",
"message.migrating.failed": "Falha na migra\u00e7\u00e3o",
diff --git a/ui/src/components/view/InstanceVolumesStoragePoolSelectListView.vue b/ui/src/components/view/InstanceVolumesStoragePoolSelectListView.vue
index 77f1b495d71..77f3e8f91f4 100644
--- a/ui/src/components/view/InstanceVolumesStoragePoolSelectListView.vue
+++ b/ui/src/components/view/InstanceVolumesStoragePoolSelectListView.vue
@@ -101,9 +101,14 @@ export default {
key: 'size',
title: this.$t('label.size')
},
+ {
+ key: 'storage',
+ title: this.$t('label.current.storage'),
+ dataIndex: 'storage'
+ },
{
key: 'selectedstorage',
- title: this.$t('label.storage')
+ title: this.$t('label.selected.storage')
},
{
key: 'select',
diff --git a/ui/src/components/view/VolumesTab.vue b/ui/src/components/view/VolumesTab.vue
index e9165b1b3bd..7805e5b8d87 100644
--- a/ui/src/components/view/VolumesTab.vue
+++ b/ui/src/components/view/VolumesTab.vue
@@ -19,7 +19,7 @@
{{ parseFloat(record.size / (1024.0 * 1024.0 * 1024.0)).toFixed(2) }} GB
+
+ {{ text }}
+ {{ text }}
+
@@ -64,11 +68,20 @@ export default {
}
},
inject: ['parentFetchData'],
+ computed: {
+ columns () {
+ if (this.volumes?.[0]) {
+ return this.allColumns.filter(col => col.dataIndex in this.volumes[0])
+ }
+ return this.allColumns.filter(col => this.defaultColumns.includes(col.dataIndex))
+ }
+ },
data () {
return {
vm: {},
volumes: [],
- volumeColumns: [
+ defaultColumns: ['name', 'state', 'type', 'size'],
+ allColumns: [
{
key: 'name',
title: this.$t('label.name'),
@@ -87,6 +100,11 @@ export default {
key: 'size',
title: this.$t('label.size'),
dataIndex: 'size'
+ },
+ {
+ key: 'storage',
+ title: this.$t('label.storage'),
+ dataIndex: 'storage'
}
]
}
diff --git a/ui/src/views/storage/MigrateVolume.vue b/ui/src/views/storage/MigrateVolume.vue
index 761fe02b187..a1ce4f71bd1 100644
--- a/ui/src/views/storage/MigrateVolume.vue
+++ b/ui/src/views/storage/MigrateVolume.vue
@@ -19,7 +19,7 @@
-
+