fix(grid): reload restored data tabs from shortcuts
This commit is contained in:
1 parent
9cf62a1c71
commit
16d7aef4db
3 files changed
+37
-4
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import type { QueryTab } from "@/types/database";
|
||||
|
||||
type RefreshableDataTab = Pick<QueryTab, "mode" | "result" | "isExecuting">;
|
||||
|
||||
export function canReloadUnavailableDataTab(tab: RefreshableDataTab): boolean {
|
||||
return tab.mode === "data" && !tab.result && !tab.isExecuting;
|
||||
}
|
||||
Reference in new issue
Block a user