mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 01:25:36 -05:00
This commit is contained in:
committed by
GitHub
parent
600f59eae6
commit
9c5ec7dcbc
@@ -930,7 +930,8 @@ export class DatabaseDialog extends ObjectManagementDialogBase<Database, Databas
|
||||
this.memoryOptimizedFilegroupNameInput = this.getFilegroupNameInput(this.memoryOptimizedFilegroupsTable, FileGroupType.MemoryOptimizedDataFileGroup);
|
||||
const addButtonComponent: DialogButton = {
|
||||
buttonAriaLabel: localizedConstants.AddFilegroupText,
|
||||
buttonHandler: () => this.onAddDatabaseFileGroupsButtonClicked(this.memoryOptimizedFilegroupsTable)
|
||||
buttonHandler: () => this.onAddDatabaseFileGroupsButtonClicked(this.memoryOptimizedFilegroupsTable),
|
||||
enabled: this.memoryoptimizedFileGroupsTableRows.length < 1
|
||||
};
|
||||
const removeButtonComponent: DialogButton = {
|
||||
buttonAriaLabel: localizedConstants.RemoveButton,
|
||||
@@ -956,6 +957,19 @@ export class DatabaseDialog extends ObjectManagementDialogBase<Database, Databas
|
||||
return this.createGroup(localizedConstants.MemoryOptimizedFileGroupsSectionText, [this.memoryOptimizedFilegroupsTable, memoryOptimizedContainer], true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Overrides declarative table add button enabled/disabled state
|
||||
* @param table table component
|
||||
* @returns table add button enabled/disabled state
|
||||
*/
|
||||
public override addButtonEnabled(table: azdata.TableComponent | azdata.DeclarativeTableComponent): boolean {
|
||||
let enabled = true;
|
||||
if (table === this.memoryOptimizedFilegroupsTable) {
|
||||
enabled = this.memoryoptimizedFileGroupsTableRows.length < 1;
|
||||
}
|
||||
return enabled;
|
||||
}
|
||||
|
||||
/**
|
||||
* Update the default value for the filegroup
|
||||
* @param arg selected checkbox event
|
||||
|
||||
Reference in New Issue
Block a user