@copart/ops-tool-kit 1.8.1-alpha.31 → 1.8.1-alpha.32
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/ops-tool-kit.js +3 -3
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -33,7 +33,7 @@ var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
|
33
33
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
34
34
|
|
|
35
35
|
const name$f = "@copart/ops-tool-kit";
|
|
36
|
-
const version$5 = "1.8.1-alpha.
|
|
36
|
+
const version$5 = "1.8.1-alpha.32";
|
|
37
37
|
const main$1 = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -35249,7 +35249,7 @@ function filterOutNotificationForOtherApps(notifications) {
|
|
|
35249
35249
|
var currentApp = window.location.pathname === '/' ? 'home' : window.location.pathname;
|
|
35250
35250
|
var tilesConfig = storage$1.getLocalItem('opsportal-core:config').tiles || [];
|
|
35251
35251
|
var tile = tilesConfig.find(function (item) {
|
|
35252
|
-
return item.path === currentApp;
|
|
35252
|
+
return item.path === currentApp || "".concat(item.path, "/") === currentApp;
|
|
35253
35253
|
}) || {};
|
|
35254
35254
|
return notifications.filter(function (notification) {
|
|
35255
35255
|
var targetApps = pathOr$1(null, ['targetAudience', 'targetApplications'])(notification);
|
|
@@ -39732,7 +39732,7 @@ var getCurrentApp = function getCurrentApp() {
|
|
|
39732
39732
|
} else {
|
|
39733
39733
|
var tilesConfig = storage$1.getLocalItem('opsportal-core:config').tiles || [];
|
|
39734
39734
|
var tile = tilesConfig.find(function (item) {
|
|
39735
|
-
return item.path === currentApp;
|
|
39735
|
+
return item.path === currentApp || "".concat(item.path, "/") === currentApp;
|
|
39736
39736
|
}) || {};
|
|
39737
39737
|
app = tile.title;
|
|
39738
39738
|
}
|