@digital-ai/dot-components 4.3.1 → 4.3.3
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/index.esm.js +9 -3
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -9647,7 +9647,13 @@ function DotDashboardStatusPill({
|
|
|
9647
9647
|
children: lockedPublished
|
|
9648
9648
|
});
|
|
9649
9649
|
} else {
|
|
9650
|
-
|
|
9650
|
+
// If we don't have the user and the dashboard is being modified, we assume that the user is a Digital.ai
|
|
9651
|
+
// Support or Admin user.
|
|
9652
|
+
return jsx(DotTooltip, {
|
|
9653
|
+
title: `This dashboard is currently being edited by Digital.ai and it is locked for editing by other users.`,
|
|
9654
|
+
placement: "top",
|
|
9655
|
+
children: lockedPublished
|
|
9656
|
+
});
|
|
9651
9657
|
}
|
|
9652
9658
|
}
|
|
9653
9659
|
} else {
|
|
@@ -11845,7 +11851,7 @@ const StyledDotMenu = styled(DotMenu)`
|
|
|
11845
11851
|
z-index: 9999;
|
|
11846
11852
|
|
|
11847
11853
|
&.dot-menu {
|
|
11848
|
-
width:
|
|
11854
|
+
min-width: 260px;
|
|
11849
11855
|
|
|
11850
11856
|
.dot-ul .dot-li {
|
|
11851
11857
|
padding: 0;
|
|
@@ -11953,7 +11959,7 @@ function DotDashboardOptionsMenu({
|
|
|
11953
11959
|
key: 'edit'
|
|
11954
11960
|
});
|
|
11955
11961
|
}
|
|
11956
|
-
if (onUpdatedProperties && !dashboard.is_ootb_dashboard) {
|
|
11962
|
+
if (onUpdatedProperties && !dashboard.is_ootb_dashboard && !dashboardLocked) {
|
|
11957
11963
|
let menuItem = jsx(DotButton, {
|
|
11958
11964
|
ariaLabel: "Edit dashboard properties",
|
|
11959
11965
|
className: isEdit ? 'disabled-menu-item' : '',
|