|
6 | 6 | */ |
7 | 7 |
|
8 | 8 | /** |
9 | | - * Data structure for showing sharee permissions |
| 9 | + * Data structure for showing sharee permissions. Array of objects with the following keys |
10 | 10 | * - accessible: boolean |
11 | 11 | * - gid: string // sharee group id |
12 | 12 | * - inaccessible_services: Array of objects with keys "key" and "version" |
@@ -35,10 +35,10 @@ qx.Class.define("osparc.share.ShareePermissions", { |
35 | 35 | promises.push(osparc.data.Resources.fetch("studies", "checkShareePermissions", params)); |
36 | 36 | }); |
37 | 37 | Promise.all(promises) |
38 | | - .then(values => { |
39 | | - const noAccessible = values.filter(value => value["accessible"] === false); |
40 | | - if (noAccessible.length) { |
41 | | - const shareePermissions = new osparc.share.ShareePermissions(noAccessible); |
| 38 | + .then(shareesData => { |
| 39 | + const inaccessibleShareesData = shareesData.filter(value => value["accessible"] === false); |
| 40 | + if (inaccessibleShareesData.length) { |
| 41 | + const shareePermissions = new osparc.share.ShareePermissions(inaccessibleShareesData); |
42 | 42 | const caption = qx.locale.Manager.tr("Sharee permissions"); |
43 | 43 | const win = osparc.ui.window.Window.popUpInWindow(shareePermissions, caption, 500, 500, "@FontAwesome5Solid/exclamation-triangle/14").set({ |
44 | 44 | clickAwayClose: false, |
@@ -70,7 +70,7 @@ qx.Class.define("osparc.share.ShareePermissions", { |
70 | 70 | this._add(layout); |
71 | 71 | for (let i=0; i<shareesData.length; i++) { |
72 | 72 | const shareeData = shareesData[i]; |
73 | | - const group = osparc.store.Groups.getInstance().getGroup(shareeData.gid); |
| 73 | + const group = osparc.store.Groups.getInstance().getGroup(shareeData["gid"]); |
74 | 74 | if (group) { |
75 | 75 | layout.add(new qx.ui.basic.Label(group.getLabel()), { |
76 | 76 | row: i, |
|
0 commit comments