@trops/dash-core 0.1.653 → 0.1.654
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +24 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +24 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -67085,6 +67085,14 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
67085
67085
|
});
|
|
67086
67086
|
return;
|
|
67087
67087
|
}
|
|
67088
|
+
// Unsaved bot edits in the Bots view ask too (never both: the Bots view
|
|
67089
|
+
// only shows outside edit mode).
|
|
67090
|
+
if (switchingAway) {
|
|
67091
|
+
leaveBotsGuarded(function () {
|
|
67092
|
+
return handleOpenTab(workspaceItem);
|
|
67093
|
+
});
|
|
67094
|
+
return;
|
|
67095
|
+
}
|
|
67088
67096
|
handleOpenTab(workspaceItem);
|
|
67089
67097
|
}
|
|
67090
67098
|
function handleCloseTab(tabId) {
|
|
@@ -68357,9 +68365,21 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
68357
68365
|
})]
|
|
68358
68366
|
}), !popout && /*#__PURE__*/jsxRuntime.jsx(DashTabBar, {
|
|
68359
68367
|
tabs: openTabs,
|
|
68360
|
-
activeTabId: activeTabId
|
|
68361
|
-
|
|
68362
|
-
|
|
68368
|
+
activeTabId: activeTabId
|
|
68369
|
+
// Leaving this dashboard with unsaved bot edits asks
|
|
68370
|
+
// first; re-clicking it or closing a background tab
|
|
68371
|
+
// doesn't.
|
|
68372
|
+
,
|
|
68373
|
+
onSwitchTab: function onSwitchTab(tabId) {
|
|
68374
|
+
return tabId === activeTabId ? handleSwitchTab(tabId) : leaveBotsGuarded(function () {
|
|
68375
|
+
return handleSwitchTab(tabId);
|
|
68376
|
+
});
|
|
68377
|
+
},
|
|
68378
|
+
onCloseTab: function onCloseTab(tabId) {
|
|
68379
|
+
return tabId === activeTabId ? leaveBotsGuarded(function () {
|
|
68380
|
+
return handleCloseTab(tabId);
|
|
68381
|
+
}) : handleCloseTab(tabId);
|
|
68382
|
+
}
|
|
68363
68383
|
})]
|
|
68364
68384
|
}) : /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
68365
68385
|
className: "flex flex-1 items-center justify-center",
|
|
@@ -68601,7 +68621,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
68601
68621
|
if (!open) setPendingLeaveBots(null);
|
|
68602
68622
|
},
|
|
68603
68623
|
title: "Discard unsaved changes?",
|
|
68604
|
-
message: "This bot's settings have changes that haven't been saved. Discard them and
|
|
68624
|
+
message: "This bot's settings have changes that haven't been saved. Discard them and continue?",
|
|
68605
68625
|
confirmLabel: "Discard changes",
|
|
68606
68626
|
cancelLabel: "Keep editing",
|
|
68607
68627
|
variant: "danger",
|