|
16 | 16 | ************************************************************************ */ |
17 | 17 |
|
18 | 18 | /** |
19 | | - * Widget used for displaying a Workspace information |
| 19 | + * Widget used for displaying a Study Browser's context information |
20 | 20 | * |
21 | 21 | */ |
22 | 22 |
|
@@ -77,7 +77,7 @@ qx.Class.define("osparc.dashboard.StudyBrowserHeader", { |
77 | 77 | nullable: false, |
78 | 78 | init: {}, |
79 | 79 | event: "changeAccessRights", |
80 | | - apply: "__applyAccessRights" |
| 80 | + apply: "__updateShareInfo" |
81 | 81 | }, |
82 | 82 |
|
83 | 83 | myAccessRights: { |
@@ -203,6 +203,7 @@ qx.Class.define("osparc.dashboard.StudyBrowserHeader", { |
203 | 203 | control = new qx.ui.form.Button(this.tr("Empty Trash"), "@FontAwesome5Solid/trash/14").set({ |
204 | 204 | appearance: "danger-button", |
205 | 205 | allowGrowY: false, |
| 206 | + alignY: "middle", |
206 | 207 | }); |
207 | 208 | control.addListener("execute", () => this.fireEvent("emptyTrashRequested")); |
208 | 209 | this._addAt(control, this.self().POS.EMPTY_TRASH_BUTTON); |
@@ -333,7 +334,7 @@ qx.Class.define("osparc.dashboard.StudyBrowserHeader", { |
333 | 334 | return shareIcon; |
334 | 335 | }, |
335 | 336 |
|
336 | | - __applyAccessRights: function(accessRights) { |
| 337 | + __updateShareInfo: function(accessRights) { |
337 | 338 | const shareIcon = this.__getShareIcon(); |
338 | 339 | const shareText = this.getChildControl("share-text"); |
339 | 340 | if (accessRights && Object.keys(accessRights).length) { |
@@ -396,7 +397,7 @@ qx.Class.define("osparc.dashboard.StudyBrowserHeader", { |
396 | 397 | const win = osparc.ui.window.Window.popUpInWindow(permissionsView, title, 500, 400); |
397 | 398 | permissionsView.addListener("updateAccessRights", () => { |
398 | 399 | win.close(); |
399 | | - this.__applyAccessRights(workspace.getAccessRights()); |
| 400 | + this.__updateShareInfo(workspace.getAccessRights()); |
400 | 401 | }, this); |
401 | 402 | }, |
402 | 403 | } |
|
0 commit comments