Skip to content

Commit b0c638c

Browse files
committed
minor
1 parent bd8d6d0 commit b0c638c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

services/static-webserver/client/source/class/osparc/dashboard/ResourceBrowserBase.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ qx.Class.define("osparc.dashboard.ResourceBrowserBase", {
126126
osparc.store.Study.getInstance().getOne(studyId),
127127
]).then(([wallet, latestStudyData]) => {
128128
const currentUserGroupIds = osparc.study.Utils.state.getCurrentGroupIds(latestStudyData["state"]);
129-
const isRTCEnabled = osparc.settings.Utils.isRTCEnabled();
129+
const isRTCEnabled = osparc.utils.DisabledPlugins.isRTCEnabled();
130130
if (isStudyCreation || wallet === null || currentUserGroupIds.length === 0) {
131131
// pop up StudyOptions if:
132132
// - the study was just created
@@ -227,7 +227,8 @@ qx.Class.define("osparc.dashboard.ResourceBrowserBase", {
227227
let openText = qx.locale.Manager.tr("New") + " " + studyAlias;
228228
if (resourceData["resourceType"] === "study") {
229229
// if it's in use call it join
230-
if (osparc.study.Utils.state.getCurrentGroupIds(resourceData["state"]).length) {
230+
const isRTCEnabled = osparc.utils.DisabledPlugins.isRTCEnabled();
231+
if (osparc.study.Utils.state.getCurrentGroupIds(resourceData["state"]).length && isRTCEnabled) {
231232
openText = qx.locale.Manager.tr("Join");
232233
} else {
233234
openText = qx.locale.Manager.tr("Open");

0 commit comments

Comments
 (0)