Making IsLedger Property to Read-only (#23804)

* Making IsLedger Property to Read-only

* refactor

* Update extensions/mssql/src/objectManagement/ui/databaseDialog.ts

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>

---------

Co-authored-by: Charles Gagnon <chgagnon@microsoft.com>
This commit is contained in:
Sai Avishkar Sreerama
2023-07-12 16:13:38 -05:00
committed by GitHub
parent d23cb8e90f
commit 207b1daf9f

View File

@@ -336,10 +336,8 @@ export class DatabaseDialog extends ObjectManagementDialogBase<Database, Databas
}
private initializeLedgerSection(): void {
// Ledger Database
this.isLedgerDatabaseInput = this.createCheckbox(localizedConstants.IsLedgerDatabaseText, async (checked) => {
this.objectInfo.isLedgerDatabase = checked;
}, this.objectInfo.isLedgerDatabase);
// Ledger Database - ReadOnly (This can only be set during creation and not changed afterwards)
this.isLedgerDatabaseInput = this.createCheckbox(localizedConstants.IsLedgerDatabaseText, async () => { }, this.objectInfo.isLedgerDatabase, false);
const ledgerSection = this.createGroup(localizedConstants.LedgerSectionHeader, [
this.isLedgerDatabaseInput