Skip to content

Commit df4ca4c

Browse files
committed
update shared icon
1 parent 73bcf94 commit df4ca4c

File tree

1 file changed

+8
-7
lines changed
  • services/static-webserver/client/source/class/osparc/form/tag

1 file changed

+8
-7
lines changed

services/static-webserver/client/source/class/osparc/form/tag/TagItem.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,6 @@ qx.Class.define("osparc.form.tag.TagItem", {
111111
alignY: "middle",
112112
cursor: "pointer",
113113
});
114-
this.addListener("changeAccessRights", e => {
115-
const accessRights = e.getData();
116-
console.log("changeAccessRights", accessRights);
117-
if (accessRights) {
118-
osparc.dashboard.CardBase.populateShareIcon(control, accessRights);
119-
}
120-
}, this);
121114
osparc.dashboard.CardBase.populateShareIcon(control, this.getAccessRights())
122115
control.addListener("tap", () => this.__openAccessRights(), this);
123116
break;
@@ -218,6 +211,14 @@ qx.Class.define("osparc.form.tag.TagItem", {
218211
const permissionsView = new osparc.share.CollaboratorsTag(this.getTag());
219212
const title = this.tr("Share Tag");
220213
osparc.ui.window.Window.popUpInWindow(permissionsView, title, 600, 600);
214+
215+
permissionsView.addListener("updateAccessRights", () => {
216+
const accessRights = this.getTag().getAccessRights();
217+
if (accessRights) {
218+
const sharedIcon = this.getChildControl("shared-icon");
219+
osparc.dashboard.CardBase.populateShareIcon(sharedIcon, accessRights);
220+
}
221+
}, this);
221222
},
222223

223224
/**

0 commit comments

Comments
 (0)