Fix to Disable Apply button for Query Store tab when no changes are made (#24573)

* fix to Disable Apply button for Query Store tab when no changes are made

* typo

* wrong name is displying in query store section
This commit is contained in:
Sai Avishkar Sreerama
2023-10-09 13:01:48 -05:00
committed by GitHub
parent 05b6593f58
commit a3041f25b2

View File

@@ -1759,11 +1759,12 @@ export class DatabaseDialog extends ObjectManagementDialogBase<Database, Databas
// Wait Statistics Capture Mode - supported from 2017 or higher
if (!isUndefinedOrNull(this.objectInfo.queryStoreOptions.waitStatisticsCaptureMode)) {
this.waitStatisticsCaptureMode = this.createDropdown(localizedConstants.WaitStatisticsCaptureModeText, async (newValue) => {
this.objectInfo.queryStoreOptions.waitStatisticsCaptureMode = newValue as string;
// waitStatisticsCaptureMode value comes as On/Off, but options we provide are ON/OFF, handling selected value to match with the incoming value
this.objectInfo.queryStoreOptions.waitStatisticsCaptureMode = newValue.charAt(0) + newValue.slice(1).toLowerCase() as string;
}, this.viewInfo.propertiesOnOffOptions, this.objectInfo.queryStoreOptions.waitStatisticsCaptureMode.toUpperCase(), this.areQueryStoreOptionsEnabled, DefaultInputWidth);
containers.push(this.createLabelInputContainer(localizedConstants.WaitStatisticsCaptureModeText, this.waitStatisticsCaptureMode));
}
const retentionSection = this.createGroup(localizedConstants.WaitStatisticsCaptureModeText, containers, true);
const retentionSection = this.createGroup(localizedConstants.QueryStoreRetentionSectionText, containers, true);
this.queryStoreTabSectionsContainer.push(retentionSection);
}