File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
services/static-webserver/client/source/class/osparc/dashboard Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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" ) ;
You can’t perform that action at this time.
0 commit comments