File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff 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 },
You can’t perform that action at this time.
0 commit comments