expect(component['rbdImage'].observers.length).toEqual(0);
component.ngOnInit(); // Subscribes to image once during init
component.submit();
- expect(component['rbdImage'].observers.length).toEqual(1);
expect(createAction).toHaveBeenCalledTimes(0);
expect(editAction).toHaveBeenCalledTimes(1);
expect(cloneAction).toHaveBeenCalledTimes(0);
desc: $localize`Deep flatten`,
requires: null,
allowEnable: false,
- allowDisable: true
+ allowDisable: true,
+ helperHtml: $localize`Feature can be disabled but can't be re-enabled later`
},
layering: {
desc: $localize`Layering`,
requires: null,
allowEnable: false,
- allowDisable: false
+ allowDisable: false,
+ helperHtml: $localize`Feature can't be manipulated after the image is created`
},
'exclusive-lock': {
desc: $localize`Exclusive lock`,
this.rbdForm.get('deep-flatten').disable();
this.rbdForm.get('layering').disable();
this.rbdForm.get('exclusive-lock').disable();
+ } else {
+ if (!this.rbdForm.get('deep-flatten').value) {
+ this.rbdForm.get('deep-flatten').disable();
+ }
+ this.rbdForm.get('layering').disable();
}
});
}