mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-13 17:22:15 -05:00
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:
committed by
GitHub
parent
05b6593f58
commit
a3041f25b2
@@ -1759,11 +1759,12 @@ export class DatabaseDialog extends ObjectManagementDialogBase<Database, Databas
|
|||||||
// Wait Statistics Capture Mode - supported from 2017 or higher
|
// Wait Statistics Capture Mode - supported from 2017 or higher
|
||||||
if (!isUndefinedOrNull(this.objectInfo.queryStoreOptions.waitStatisticsCaptureMode)) {
|
if (!isUndefinedOrNull(this.objectInfo.queryStoreOptions.waitStatisticsCaptureMode)) {
|
||||||
this.waitStatisticsCaptureMode = this.createDropdown(localizedConstants.WaitStatisticsCaptureModeText, async (newValue) => {
|
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);
|
}, this.viewInfo.propertiesOnOffOptions, this.objectInfo.queryStoreOptions.waitStatisticsCaptureMode.toUpperCase(), this.areQueryStoreOptionsEnabled, DefaultInputWidth);
|
||||||
containers.push(this.createLabelInputContainer(localizedConstants.WaitStatisticsCaptureModeText, this.waitStatisticsCaptureMode));
|
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);
|
this.queryStoreTabSectionsContainer.push(retentionSection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user