From a3041f25b29208b6b962bd77c4eea0f9af328307 Mon Sep 17 00:00:00 2001 From: Sai Avishkar Sreerama <74571829+ssreerama@users.noreply.github.com> Date: Mon, 9 Oct 2023 13:01:48 -0500 Subject: [PATCH] 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 --- extensions/mssql/src/objectManagement/ui/databaseDialog.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extensions/mssql/src/objectManagement/ui/databaseDialog.ts b/extensions/mssql/src/objectManagement/ui/databaseDialog.ts index 317863c071..dee011048c 100644 --- a/extensions/mssql/src/objectManagement/ui/databaseDialog.ts +++ b/extensions/mssql/src/objectManagement/ui/databaseDialog.ts @@ -1759,11 +1759,12 @@ export class DatabaseDialog extends ObjectManagementDialogBase { - 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); }