mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
disable the checkbox for schemas owned by user (#22178)
This commit is contained in:
@@ -190,7 +190,11 @@ export class UserDialog extends ObjectManagementDialogBase<ObjectManagement.User
|
|||||||
}
|
}
|
||||||
|
|
||||||
private initializeOwnedSchemaSection(): void {
|
private initializeOwnedSchemaSection(): void {
|
||||||
this.ownedSchemaTable = this.createTableList(localizedConstants.OwnedSchemaSectionHeader, this.viewInfo.schemas, this.objectInfo.ownedSchemas);
|
const ownedSchemaData = this.viewInfo.schemas.map(name => {
|
||||||
|
const isSelected = this.objectInfo.ownedSchemas.indexOf(name) !== -1;
|
||||||
|
return [{ enabled: !isSelected, checked: isSelected }, name];
|
||||||
|
});
|
||||||
|
this.ownedSchemaTable = this.createTableList(localizedConstants.OwnedSchemaSectionHeader, this.viewInfo.schemas, this.objectInfo.ownedSchemas, ownedSchemaData);
|
||||||
this.ownedSchemaSection = this.createGroup(localizedConstants.OwnedSchemaSectionHeader, [this.ownedSchemaTable]);
|
this.ownedSchemaSection = this.createGroup(localizedConstants.OwnedSchemaSectionHeader, [this.ownedSchemaTable]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user