@adaptabletools/adaptable-plugin-openfin 16.0.0-canary.2 → 16.0.0-canary.4
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/package.json +2 -2
- package/src/OpenFinApiImpl.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptabletools/adaptable-plugin-openfin",
|
|
3
|
-
"version": "16.0.0-canary.
|
|
3
|
+
"version": "16.0.0-canary.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"homepage": "http://www.adaptabletools.com/",
|
|
6
6
|
"author": {
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"redux": "4.0.5",
|
|
21
21
|
"styled-components": "^4.4.1",
|
|
22
22
|
"tslib": "^2.3.0",
|
|
23
|
-
"@adaptabletools/adaptable": "16.0.0-canary.
|
|
23
|
+
"@adaptabletools/adaptable": "16.0.0-canary.4"
|
|
24
24
|
}
|
|
25
25
|
}
|
package/src/OpenFinApiImpl.js
CHANGED
|
@@ -7,7 +7,7 @@ const ModuleConstants = tslib_1.__importStar(require("@adaptabletools/adaptable/
|
|
|
7
7
|
const OpenFinRedux = tslib_1.__importStar(require("./Redux/ActionReducers/OpenFinRedux"));
|
|
8
8
|
const openfin_notifications_1 = require("openfin-notifications");
|
|
9
9
|
const isRunningInOpenfin_1 = require("./Utilities/isRunningInOpenfin");
|
|
10
|
-
const
|
|
10
|
+
const Icon_1 = require("@adaptabletools/adaptable/src/components/Icon");
|
|
11
11
|
// needed because otherwise openfin-notifications is not initialized properly
|
|
12
12
|
// as it assumes it's running before DOMContentLoaded, but nextjs and other bundlers
|
|
13
13
|
// might inject it after DOMContentLoaded is fired - so we fire it programatically
|
|
@@ -117,7 +117,7 @@ class OpenFinApiImpl extends ApiBase_1.ApiBase {
|
|
|
117
117
|
}
|
|
118
118
|
const showIcon = this.options.showAppIconInNotifications;
|
|
119
119
|
const appIcon = (_a = this.adaptable.api.optionsApi.getUserInterfaceOptions()) === null || _a === void 0 ? void 0 : _a.applicationIcon;
|
|
120
|
-
if (!notification.icon && showIcon && (0,
|
|
120
|
+
if (!notification.icon && showIcon && (0, Icon_1.isAdaptableCustomIcon)(appIcon)) {
|
|
121
121
|
notification.icon = appIcon.src;
|
|
122
122
|
}
|
|
123
123
|
const fn = this.options.onShowNotification;
|