Skip to content

Commit 15e2396

Browse files
committed
isSupportEnabled
1 parent e55362e commit 15e2396

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

services/static-webserver/client/source/class/osparc/ui/message/FlashMessageOEC.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,13 @@ qx.Class.define("osparc.ui.message.FlashMessageOEC", {
2828
construct: function(message, duration, supportId) {
2929
this.base(arguments, message, "ERROR", duration*2);
3030

31-
const oecAtom = this.getChildControl("oec-atom");
32-
this.bind("supportId", oecAtom, "label");
33-
this.setSupportId(supportId);
31+
if (osparc.product.Utils.isSupportEnabled()) {
32+
console.log("bring it to support chat");
33+
} else {
34+
const oecAtom = this.getChildControl("oec-atom");
35+
this.bind("supportId", oecAtom, "label");
36+
this.setSupportId(supportId);
37+
}
3438
},
3539

3640
properties: {

0 commit comments

Comments
 (0)