diff --git a/pkg/harvester/components/FilterVMSchedule.vue b/pkg/harvester/components/FilterVMSchedule.vue index cb4eccb2445..0cf6002a67b 100644 --- a/pkg/harvester/components/FilterVMSchedule.vue +++ b/pkg/harvester/components/FilterVMSchedule.vue @@ -69,7 +69,7 @@ export default { diff --git a/pkg/harvester/config/labels-annotations.js b/pkg/harvester/config/labels-annotations.js index ba1864ffb03..64a27c5316e 100644 --- a/pkg/harvester/config/labels-annotations.js +++ b/pkg/harvester/config/labels-annotations.js @@ -53,4 +53,5 @@ export const HCI = { NODE_CPU_MANAGER_UPDATE_STATUS: 'harvesterhci.io/cpu-manager-update-status', CPU_MANAGER: 'cpumanager', VM_DEVICE_ALLOCATION_DETAILS: 'harvesterhci.io/deviceAllocationDetails', + SVM_BACKUP_ID: 'harvesterhci.io/svmbackupId', }; diff --git a/pkg/harvester/detail/harvesterhci.io.schedulevmbackup/BackupList.vue b/pkg/harvester/detail/harvesterhci.io.schedulevmbackup/BackupList.vue index d8ff2abfc83..1ae77e55bf0 100644 --- a/pkg/harvester/detail/harvesterhci.io.schedulevmbackup/BackupList.vue +++ b/pkg/harvester/detail/harvesterhci.io.schedulevmbackup/BackupList.vue @@ -4,6 +4,7 @@ import { STATE, NAME, AGE } from '@shell/config/table-headers'; import { allSettled } from '../../utils/promise'; import { BACKUP_TYPE } from '../../config/types'; import { HCI } from '../../types'; +import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations'; export default { name: 'BackupList', @@ -90,7 +91,7 @@ export default { let r = this.rows.filter(row => row.spec?.type === BACKUP_TYPE.BACKUP); if (this.id) { - r = r.filter(backup => backup.metadata.annotations?.['harvesterhci.io/svmbackupId'] === this.id); + r = r.filter(backup => backup.metadata.annotations?.[HCI_ANNOTATIONS.SVM_BACKUP_ID] === this.id); } return r; diff --git a/pkg/harvester/detail/harvesterhci.io.schedulevmbackup/SnapshotList.vue b/pkg/harvester/detail/harvesterhci.io.schedulevmbackup/SnapshotList.vue index 99d68f9aa38..9fa3111dcc0 100644 --- a/pkg/harvester/detail/harvesterhci.io.schedulevmbackup/SnapshotList.vue +++ b/pkg/harvester/detail/harvesterhci.io.schedulevmbackup/SnapshotList.vue @@ -3,6 +3,7 @@ import ResourceTable from '@shell/components/ResourceTable'; import { STATE, NAME, AGE } from '@shell/config/table-headers'; import { allSettled } from '../../utils/promise'; import { BACKUP_TYPE } from '../../config/types'; +import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations'; import { HCI } from '../../types'; import { schema } from '../../list/harvesterhci.io.vmsnapshot'; @@ -58,7 +59,7 @@ export default { let r = this.rows.filter(row => row.spec?.type === BACKUP_TYPE.SNAPSHOT); if (this.id) { - r = r.filter(row => row.metadata.annotations?.['harvesterhci.io/svmbackupId'] === this.id); + r = r.filter(row => row.metadata.annotations?.[HCI_ANNOTATIONS.SVM_BACKUP_ID] === this.id); } return r; diff --git a/pkg/harvester/dialog/HarvesterScheduleModal.vue b/pkg/harvester/dialog/HarvesterScheduleModal.vue deleted file mode 100644 index a623ab742b7..00000000000 --- a/pkg/harvester/dialog/HarvesterScheduleModal.vue +++ /dev/null @@ -1,129 +0,0 @@ - - - - - diff --git a/pkg/harvester/edit/harvesterhci.io.virtualmachinebackup.vue b/pkg/harvester/edit/harvesterhci.io.virtualmachinebackup.vue index 05b4c1b3139..b42c29e4a81 100644 --- a/pkg/harvester/edit/harvesterhci.io.virtualmachinebackup.vue +++ b/pkg/harvester/edit/harvesterhci.io.virtualmachinebackup.vue @@ -159,6 +159,10 @@ export default { }, methods: { + cancelAction() { + this.$router.go(-1); + }, + async saveRestore(buttonCb) { this.update(); @@ -261,7 +265,7 @@ export default { /> -