mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -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);
|
super.setProperties(properties);
|
||||||
this.items.forEach(item => {
|
this.items.forEach(item => {
|
||||||
let component = this.modelStore.getComponent(item.descriptor.id);
|
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;
|
component.enabled = this.enabled;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user