Latest changes from Harvester master - a537c1ae38eb7030542ac371f24ae3336cd9d422

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-10-23 17:01:40 +02:00
parent 2ca86930ad
commit 118aaf16b7
35 changed files with 1484 additions and 93 deletions
@@ -225,13 +225,15 @@ export default {
}
},
headerFor(type) {
return {
headerFor(type, hasVolBackups = false) {
const mainHeader = {
[SOURCE_TYPE.NEW]: this.$store.getters['i18n/t']('harvester.virtualMachine.volume.title.volume'),
[SOURCE_TYPE.IMAGE]: this.$store.getters['i18n/t']('harvester.virtualMachine.volume.title.vmImage'),
[SOURCE_TYPE.ATTACH_VOLUME]: this.$store.getters['i18n/t']('harvester.virtualMachine.volume.title.existingVolume'),
[SOURCE_TYPE.CONTAINER]: this.$store.getters['i18n/t']('harvester.virtualMachine.volume.title.container'),
}[type];
return hasVolBackups ? `${ mainHeader } and Backups` : mainHeader;
},
update() {
@@ -322,7 +324,7 @@ export default {
</span>
<span v-else>
{{ headerFor(volume.source) }}
{{ headerFor(volume.source, !!volume?.volumeBackups) }}
</span>
</h3>
<div>