CB-4035 do not show confirm if it is only output tab (#2079)

Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
This commit is contained in:
alex
2023-10-24 18:11:02 +03:00
committed by GitHub
co-authored by Daria Marutkina
parent 97dc309bcb
commit d3cf9e3938
@@ -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?`,