Skip to content

Commit a5c5c09

Browse files
committed
minor
1 parent 7e9dd1d commit a5c5c09

File tree

1 file changed

+16
-1
lines changed
  • services/static-webserver/client/source/class/osparc/support

1 file changed

+16
-1
lines changed

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)