@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.esm.js
CHANGED
|
@@ -67067,6 +67067,14 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
67067
67067
|
});
|
|
67068
67068
|
return;
|
|
67069
67069
|
}
|
|
67070
|
+
// Unsaved bot edits in the Bots view ask too (never both: the Bots view
|
|
67071
|
+
// only shows outside edit mode).
|
|
67072
|
+
if (switchingAway) {
|
|
67073
|
+
leaveBotsGuarded(function () {
|
|
67074
|
+
return handleOpenTab(workspaceItem);
|
|
67075
|
+
});
|
|
67076
|
+
return;
|
|
67077
|
+
}
|
|
67070
67078
|
handleOpenTab(workspaceItem);
|
|
67071
67079
|
}
|
|
67072
67080
|
function handleCloseTab(tabId) {
|
|
@@ -68339,9 +68347,21 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
68339
68347
|
})]
|
|
68340
68348
|
}), !popout && /*#__PURE__*/jsx(DashTabBar, {
|
|
68341
68349
|
tabs: openTabs,
|
|
68342
|
-
activeTabId: activeTabId
|
|
68343
|
-
|
|
68344
|
-
|
|
68350
|
+
activeTabId: activeTabId
|
|
68351
|
+
// Leaving this dashboard with unsaved bot edits asks
|
|
68352
|
+
// first; re-clicking it or closing a background tab
|
|
68353
|
+
// doesn't.
|
|
68354
|
+
,
|
|
68355
|
+
onSwitchTab: function onSwitchTab(tabId) {
|
|
68356
|
+
return tabId === activeTabId ? handleSwitchTab(tabId) : leaveBotsGuarded(function () {
|
|
68357
|
+
return handleSwitchTab(tabId);
|
|
68358
|
+
});
|
|
68359
|
+
},
|
|
68360
|
+
onCloseTab: function onCloseTab(tabId) {
|
|
68361
|
+
return tabId === activeTabId ? leaveBotsGuarded(function () {
|
|
68362
|
+
return handleCloseTab(tabId);
|
|
68363
|
+
}) : handleCloseTab(tabId);
|
|
68364
|
+
}
|
|
68345
68365
|
})]
|
|
68346
68366
|
}) : /*#__PURE__*/jsx("div", {
|
|
68347
68367
|
className: "flex flex-1 items-center justify-center",
|
|
@@ -68583,7 +68603,7 @@ var DashboardStageInner = function DashboardStageInner(_ref3) {
|
|
|
68583
68603
|
if (!open) setPendingLeaveBots(null);
|
|
68584
68604
|
},
|
|
68585
68605
|
title: "Discard unsaved changes?",
|
|
68586
|
-
message: "This bot's settings have changes that haven't been saved. Discard them and
|
|
68606
|
+
message: "This bot's settings have changes that haven't been saved. Discard them and continue?",
|
|
68587
68607
|
confirmLabel: "Discard changes",
|
|
68588
68608
|
cancelLabel: "Keep editing",
|
|
68589
68609
|
variant: "danger",
|