Skip to content

Commit

Permalink
Query store capture policy section is enabling on non-custom capture …
Browse files Browse the repository at this point in the history
…mode #24371
  • Loading branch information
ssreerama committed Sep 11, 2023
1 parent 2a21e63 commit 5c42313
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/mssql/src/objectManagement/ui/databaseDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1847,7 +1847,8 @@ export class DatabaseDialog extends ObjectManagementDialogBase<Database, Databas
if (!isUndefinedOrNull(this.objectInfo.queryStoreOptions.waitStatisticsCaptureMode)) {
this.waitStatisticsCaptureMode.enabled = this.areQueryStoreOptionsEnabled
}
await this.toggleQueryCapturePolicySection(this.areQueryStoreOptionsEnabled);
await this.toggleQueryCapturePolicySection(this.areQueryStoreOptionsEnabled &&
this.queryStoreCaptureMode.value === localizedConstants.QueryStoreCapturemodeCustomText);
}

private async toggleQueryCapturePolicySection(enable: boolean): Promise<void> {
Expand Down

0 comments on commit 5c42313

Please sign in to comment.