mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
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:
committed by
GitHub
parent
d23cb8e90f
commit
207b1daf9f
@@ -336,10 +336,8 @@ export class DatabaseDialog extends ObjectManagementDialogBase<Database, Databas
|
|||||||
}
|
}
|
||||||
|
|
||||||
private initializeLedgerSection(): void {
|
private initializeLedgerSection(): void {
|
||||||
// Ledger Database
|
// Ledger Database - ReadOnly (This can only be set during creation and not changed afterwards)
|
||||||
this.isLedgerDatabaseInput = this.createCheckbox(localizedConstants.IsLedgerDatabaseText, async (checked) => {
|
this.isLedgerDatabaseInput = this.createCheckbox(localizedConstants.IsLedgerDatabaseText, async () => { }, this.objectInfo.isLedgerDatabase, false);
|
||||||
this.objectInfo.isLedgerDatabase = checked;
|
|
||||||
}, this.objectInfo.isLedgerDatabase);
|
|
||||||
|
|
||||||
const ledgerSection = this.createGroup(localizedConstants.LedgerSectionHeader, [
|
const ledgerSection = this.createGroup(localizedConstants.LedgerSectionHeader, [
|
||||||
this.isLedgerDatabaseInput
|
this.isLedgerDatabaseInput
|
||||||
|
|||||||
Reference in New Issue
Block a user