From 906eb52c5e58f144f2d750336b4c54664a6d38a4 Mon Sep 17 00:00:00 2001 From: Abhisar Sinha <63767682+abh1sar@users.noreply.github.com> Date: Thu, 6 Nov 2025 19:48:29 +0530 Subject: [PATCH 1/3] fix backup schedule UI merge --- .../views/compute/backup/BackupSchedule.vue | 3 ++- ui/src/views/compute/backup/FormSchedule.vue | 22 +++++++++++++++---- 2 files changed, 20 insertions(+), 5 deletions(-) diff --git a/ui/src/views/compute/backup/BackupSchedule.vue b/ui/src/views/compute/backup/BackupSchedule.vue index 627bcd8cfbf5..b3e894ec9821 100644 --- a/ui/src/views/compute/backup/BackupSchedule.vue +++ b/ui/src/views/compute/backup/BackupSchedule.vue @@ -99,7 +99,7 @@ export default { default: false }, dataSource: { - type: Object, + type: Array, required: true }, deleteFn: { @@ -128,6 +128,7 @@ export default { dataIndex: 'intervaltype' }, { + key: 'time', title: this.$t('label.time'), dataIndex: 'schedule' }, diff --git a/ui/src/views/compute/backup/FormSchedule.vue b/ui/src/views/compute/backup/FormSchedule.vue index 1833449c3cc7..181569680836 100644 --- a/ui/src/views/compute/backup/FormSchedule.vue +++ b/ui/src/views/compute/backup/FormSchedule.vue @@ -35,16 +35,16 @@ v-model:value="form.intervaltype" button-style="solid" @change="handleChangeIntervalType"> - + {{ $t('label.hourly') }} - + {{ $t('label.daily') }} - + {{ $t('label.weekly') }} - + {{ $t('label.monthly') }} @@ -180,6 +180,10 @@ export default { type: Boolean, default: false }, + dataSource: { + type: Array, + required: true + }, resource: { type: Object, required: true @@ -287,6 +291,16 @@ export default { break } }, + handleVisibleInterval (intervalType) { + if (this.dataSource?.length === 0) { + return false + } + const dataSource = this.dataSource.filter(item => item.intervaltype === intervalType) + if (dataSource && dataSource.length > 0) { + return true + } + return false + }, handleSubmit (e) { if (this.actionLoading) return this.formRef.value.validate().then(() => { From 3bc4fa96410902273bbbef09c671fe090ce2fc7a Mon Sep 17 00:00:00 2001 From: Abhisar Sinha <63767682+abh1sar@users.noreply.github.com> Date: Fri, 7 Nov 2025 15:19:09 +0530 Subject: [PATCH 2/3] fix backup schedule selection in instance deployment wizard --- ui/src/views/compute/wizard/DeployInstanceBackupSelection.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/views/compute/wizard/DeployInstanceBackupSelection.vue b/ui/src/views/compute/wizard/DeployInstanceBackupSelection.vue index 6f6c0b58d1d2..d35ed0038279 100644 --- a/ui/src/views/compute/wizard/DeployInstanceBackupSelection.vue +++ b/ui/src/views/compute/wizard/DeployInstanceBackupSelection.vue @@ -55,6 +55,7 @@ @cancel="closeModals"> @@ -90,7 +91,8 @@ export default { return { backupOffering: null, showAddBackupSchedule: false, - localBackupOfferingId: this.backupOfferingId + localBackupOfferingId: this.backupOfferingId, + dataSource: [] } }, provide () { From 982298ea7321746546294051fea37c3234eed307 Mon Sep 17 00:00:00 2001 From: Abhisar Sinha <63767682+abh1sar@users.noreply.github.com> Date: Tue, 16 Dec 2025 15:43:58 +0530 Subject: [PATCH 3/3] switch selected interval after creation of schedule on one interval --- ui/src/views/compute/backup/FormSchedule.vue | 80 +++++++++++++++----- ui/src/views/storage/FormSchedule.vue | 79 ++++++++++++++----- 2 files changed, 125 insertions(+), 34 deletions(-) diff --git a/ui/src/views/compute/backup/FormSchedule.vue b/ui/src/views/compute/backup/FormSchedule.vue index 181569680836..7d951deaf205 100644 --- a/ui/src/views/compute/backup/FormSchedule.vue +++ b/ui/src/views/compute/backup/FormSchedule.vue @@ -35,16 +35,16 @@ v-model:value="form.intervaltype" button-style="solid" @change="handleChangeIntervalType"> - + {{ $t('label.hourly') }} - + {{ $t('label.daily') }} - + {{ $t('label.weekly') }} - + {{ $t('label.monthly') }} @@ -54,6 +54,7 @@ @@ -79,6 +81,7 @@ - + {{ $t('label.hourly') }} - + {{ $t('label.daily') }} - + {{ $t('label.weekly') }} - + {{ $t('label.monthly') }} @@ -60,6 +60,7 @@ :title="$t('label.minute.past.hour')"> @@ -85,6 +87,7 @@