Skip to content

Commit 3cb15b7

Browse files
committed
minor
1 parent 8b43586 commit 3cb15b7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

services/static-webserver/client/source/class/osparc/editor/AnnotationNoteCreator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ qx.Class.define("osparc.editor.AnnotationNoteCreator", {
8888
control.addListener("execute", () => {
8989
const currentStudy = osparc.store.Store.getInstance().getCurrentStudy().serialize();
9090
currentStudy["resourceType"] = "study";
91-
const collaboratorsManager = new osparc.share.NewCollaboratorsManager(currentStudy, false);
91+
const collaboratorsManager = new osparc.share.NewCollaboratorsManager(currentStudy, false, false);
9292
collaboratorsManager.setCaption("Recipient");
9393
collaboratorsManager.getActionButton().setLabel(this.tr("Add"));
9494
collaboratorsManager.addListener("addCollaborators", e => {

services/static-webserver/client/source/class/osparc/share/NewCollaboratorsManager.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
qx.Class.define("osparc.share.NewCollaboratorsManager", {
99
extend: osparc.ui.window.SingletonWindow,
1010

11-
construct: function(resourceData, showOrganizations = true) {
11+
construct: function(resourceData, showOrganizations = true, showAccessRights = true) {
1212
this.base(arguments, "newCollaboratorsManager", this.tr("New collaborators"));
1313

1414
this.set({
@@ -26,6 +26,7 @@ qx.Class.define("osparc.share.NewCollaboratorsManager", {
2626

2727
this.__resourceData = resourceData;
2828
this.__showOrganizations = showOrganizations;
29+
this.__showAccessRights = showAccessRights;
2930

3031
this.__renderLayout();
3132

@@ -50,6 +51,7 @@ qx.Class.define("osparc.share.NewCollaboratorsManager", {
5051
members: {
5152
__resourceData: null,
5253
__showOrganizations: null,
54+
__showAccessRights: null,
5355
__searchDelayer: null,
5456
__selectedCollaborators: null,
5557
__potentialCollaborators: null,
@@ -192,7 +194,7 @@ qx.Class.define("osparc.share.NewCollaboratorsManager", {
192194
this.getChildControl("potential-collaborators-list");
193195
this.getChildControl("searching-collaborators");
194196

195-
if (this.__resourceData["resourceType"] === "study") {
197+
if (this.__resourceData["resourceType"] === "study" && this.__showAccessRights) {
196198
const selectBox = this.getChildControl("access-rights-selector");
197199
const helper = this.getChildControl("access-rights-helper");
198200

0 commit comments

Comments
 (0)