File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
services/static-webserver/client/source/class/osparc/support Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -143,9 +143,24 @@ qx.Class.define("osparc.support.Conversation", {
143143 __applyConversation : function ( conversation ) {
144144 this . __reloadMessages ( true ) ;
145145
146- if ( conversation === null && osparc . store . Store . getInstance ( ) . getCurrentStudy ( ) ) {
146+ const currentStudy = osparc . store . Store . getInstance ( ) . getCurrentStudy ( ) ;
147+ if ( conversation === null && currentStudy ) {
147148 this . getChildControl ( "share-project-checkbox" ) . show ( ) ;
148149 }
150+ /*
151+ const shareProjectLayout = this.getChildControl("share-project-layout");
152+ shareProjectLayout.setVisibility(conversation && currentStudy ? "visible" : "excluded");
153+ if (conversation && currentStudy) {
154+ const shareProjectCB = this.getChildControl("share-project-checkbox");
155+ const supportGroupId = currentStudy.getSupportGroupId();
156+ const accessRights = currentStudy.getAccessRights();
157+ if (supportGroupId && supportGroupId in accessRights) {
158+ shareProjectCB.setValue(true);
159+ } else {
160+ shareProjectCB.setValue(false);
161+ }
162+ }
163+ */
149164 } ,
150165
151166 __reloadMessages : function ( removeMessages = true ) {
You can’t perform that action at this time.
0 commit comments