Skip to content

Commit a276ef1

Browse files
committed
isBookACallEnabled
1 parent 9a53481 commit a276ef1

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

services/static-webserver/client/source/class/osparc/product/Utils.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,10 @@ qx.Class.define("osparc.product.Utils", {
451451
return Boolean(osparc.store.Products.getInstance().getGroupedServicesUiConfig());
452452
},
453453

454+
isBookACallEnabled: function() {
455+
return osparc.utils.Utils.isDevelopmentPlatform();
456+
},
457+
454458
S4L_TOPICS: [
455459
{
456460
id: "other",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ qx.Class.define("osparc.support.ConversationsPage", {
2727
this.getChildControl("conversations-list");
2828
this.getChildControl("ask-a-question-button");
2929
this.getChildControl("book-a-call-button");
30-
if (osparc.utils.Utils.isDevelopmentPlatform()) {
30+
if (osparc.product.Utils.isBookACallEnabled()) {
3131
this.getChildControl("book-a-call-button-3rd");
3232
}
3333
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ qx.Class.define("osparc.support.HomePage", {
3131
if (osparc.store.Groups.getInstance().isSupportEnabled()) {
3232
this.getChildControl("ask-a-question-button");
3333
this.getChildControl("book-a-call-button");
34-
if (osparc.utils.Utils.isDevelopmentPlatform()) {
34+
if (osparc.product.Utils.isBookACallEnabled()) {
3535
this.getChildControl("book-a-call-button-3rd");
3636
}
3737
}

0 commit comments

Comments
 (0)