Skip to content

Commit 9b9d47d

Browse files
committed
minor
1 parent 35e6fea commit 9b9d47d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

services/static-webserver/client/source/class/osparc/dashboard/StudyBrowserHeader.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
************************************************************************ */
1717

1818
/**
19-
* Widget used for displaying a Workspace information
19+
* Widget used for displaying a Study Browser's context information
2020
*
2121
*/
2222

@@ -77,7 +77,7 @@ qx.Class.define("osparc.dashboard.StudyBrowserHeader", {
7777
nullable: false,
7878
init: {},
7979
event: "changeAccessRights",
80-
apply: "__applyAccessRights"
80+
apply: "__updateShareInfo"
8181
},
8282

8383
myAccessRights: {
@@ -203,6 +203,7 @@ qx.Class.define("osparc.dashboard.StudyBrowserHeader", {
203203
control = new qx.ui.form.Button(this.tr("Empty Trash"), "@FontAwesome5Solid/trash/14").set({
204204
appearance: "danger-button",
205205
allowGrowY: false,
206+
alignY: "middle",
206207
});
207208
control.addListener("execute", () => this.fireEvent("emptyTrashRequested"));
208209
this._addAt(control, this.self().POS.EMPTY_TRASH_BUTTON);
@@ -333,7 +334,7 @@ qx.Class.define("osparc.dashboard.StudyBrowserHeader", {
333334
return shareIcon;
334335
},
335336

336-
__applyAccessRights: function(accessRights) {
337+
__updateShareInfo: function(accessRights) {
337338
const shareIcon = this.__getShareIcon();
338339
const shareText = this.getChildControl("share-text");
339340
if (accessRights && Object.keys(accessRights).length) {
@@ -396,7 +397,7 @@ qx.Class.define("osparc.dashboard.StudyBrowserHeader", {
396397
const win = osparc.ui.window.Window.popUpInWindow(permissionsView, title, 500, 400);
397398
permissionsView.addListener("updateAccessRights", () => {
398399
win.close();
399-
this.__applyAccessRights(workspace.getAccessRights());
400+
this.__updateShareInfo(workspace.getAccessRights());
400401
}, this);
401402
},
402403
}

0 commit comments

Comments
 (0)