Skip to content

Commit

Permalink
CB-4035 do not show confirm if it is only output tab (#2079)
Browse files Browse the repository at this point in the history
Co-authored-by: Daria Marutkina <[email protected]>
  • Loading branch information
devnaumov and dariamarutkina authored Oct 24, 2023
1 parent 97dc309 commit d3cf9e3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@ export function useSqlEditor(state: ISqlEditorTabState): ISQLEditorData {
return;
}

if (this.state.tabs.length) {
const processableTabs = this.state.tabs.filter(tab => tab.id !== OUTPUT_LOGS_TAB_ID);
const processableTabs = this.state.tabs.filter(tab => tab.id !== OUTPUT_LOGS_TAB_ID);

if (processableTabs.length > 0) {
const result = await this.commonDialogService.open(ConfirmationDialog, {
title: 'sql_editor_close_result_tabs_dialog_title',
message: `Do you want to close ${processableTabs.length} tabs before executing script?`,
Expand Down

0 comments on commit d3cf9e3

Please sign in to comment.