Skip to content

Commit 52b3f9a

Browse files
committed
fix
Signed-off-by: Abhishek Kumar <[email protected]>
1 parent 8d1128e commit 52b3f9a

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

ui/src/views/compute/DeployVM.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3433,21 +3433,22 @@ export default {
34333433
this.form.externaldetails = undefined
34343434
},
34353435
onChangeBackupOffering (val) {
3436-
if (val && val.id) {
3437-
this.selectedBackupOffering = val
3436+
if (!val || !val.id) {
3437+
this.selectedBackupOffering = null
3438+
this.backupSchedules = []
34383439
return
34393440
}
3440-
this.selectedBackupOffering = null
3441-
this.backupSchedules = []
3441+
this.selectedBackupOffering = val
3442+
if (this.backupSchedules && this.backupSchedules.length > 0 && !['nas'].includes(val.provider)) {
3443+
this.backupSchedules = this.backupSchedules.filter(item => !item.quiescevm)
3444+
}
34423445
},
34433446
async performPostDeployBackupActions (vm) {
34443447
if (!this.isUserAllowedBackupOperations) {
34453448
return
34463449
}
34473450
const assigned = await this.assignVirtualMachineToBackupOfferingIfNeeded(vm)
34483451
if (assigned) {
3449-
// wait for 200ms
3450-
await new Promise(resolve => setTimeout(resolve, 200))
34513452
await this.createVirtualMachineBackupSchedulesIfNeeded(vm)
34523453
}
34533454
},

0 commit comments

Comments
 (0)