mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 17:22:45 -05:00
Let child ModelView components control their own enabled status by default (#13524)
This commit is contained in:
@@ -354,7 +354,8 @@ export abstract class ContainerBase<T, TPropertyBag extends azdata.ComponentProp
|
||||
super.setProperties(properties);
|
||||
this.items.forEach(item => {
|
||||
let component = this.modelStore.getComponent(item.descriptor.id);
|
||||
if (component) {
|
||||
// Let child components control their own enabled status if we don't have one specifically set
|
||||
if (component && properties.enabled !== undefined) {
|
||||
component.enabled = this.enabled;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user