Skip to content

Commit 53ce789

Browse files
committed
isSupportEnabled
1 parent 84fe781 commit 53ce789

File tree

1 file changed

+6
-3
lines changed
  • services/static-webserver/client/source/class/osparc/support

1 file changed

+6
-3
lines changed

services/static-webserver/client/source/class/osparc/support/HomePage.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ qx.Class.define("osparc.support.HomePage", {
2929
});
3030

3131
this.getChildControl("conversations-intro-text");
32-
this.getChildControl("ask-a-question");
32+
if (osparc.store.Groups.getInstance().isSupportEnabled()) {
33+
this.getChildControl("ask-a-question");
34+
}
3335
this.__populateButtons();
3436
},
3537

@@ -69,9 +71,10 @@ qx.Class.define("osparc.support.HomePage", {
6971
break;
7072
}
7173
case "ask-a-question":
72-
control = new qx.ui.form.Button(this.tr("Ask a Question"), "@FontAwesome5Solid/comments/16").set({
74+
control = new qx.ui.form.Button(this.tr("Ask a Question"), "@FontAwesome5Solid/comments/16");
75+
osparc.support.HomePage.decorateButton(control);
76+
control.set({
7377
appearance: "strong-button",
74-
font: "text-14",
7578
center: true,
7679
});
7780
control.addListener("execute", () => this.fireEvent("openConversation"));

0 commit comments

Comments
 (0)