Skip to content

Commit 1f6e51f

Browse files
committed
texts and aesthetics
1 parent 917a423 commit 1f6e51f

File tree

1 file changed

+9
-19
lines changed
  • services/static-webserver/client/source/class/osparc/desktop/organizations

1 file changed

+9
-19
lines changed

services/static-webserver/client/source/class/osparc/desktop/organizations/MembersList.js

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ qx.Class.define("osparc.desktop.organizations.MembersList", {
7676
__currentOrg: null,
7777
__introLabel: null,
7878
__memberInvitationButton: null,
79-
__changeRoleLabel: null,
8079
__membersModel: null,
8180

8281
setCurrentOrg: function(orgModel) {
@@ -96,8 +95,11 @@ qx.Class.define("osparc.desktop.organizations.MembersList", {
9695

9796
__createMembersList: function() {
9897
const vBox = new qx.ui.container.Composite(new qx.ui.layout.VBox(5));
99-
vBox.add(this.__getRolesToolbar());
100-
vBox.add(this.__getMembersFilter());
98+
const rolesLayout = this.__getRolesToolbar();
99+
rolesLayout.addAt(this.__getMembersFilter(), 0, {
100+
flex: 3
101+
});
102+
vBox.add(rolesLayout);
101103
vBox.add(this.__getMembersList(), {
102104
flex: 1
103105
});
@@ -118,15 +120,15 @@ qx.Class.define("osparc.desktop.organizations.MembersList", {
118120
__getMemberInvitation: function() {
119121
const addBtn = this.__memberInvitationButton = new qx.ui.form.Button().set({
120122
appearance: "strong-button",
121-
label: this.tr("Add Member..."),
123+
label: this.tr("Add Members..."),
122124
allowGrowX: false,
123125
});
124126
addBtn.addListener("execute", function() {
125127
const serializedData = this.__currentOrg.serialize();
126128
serializedData["resourceType"] = "organization";
127129
const showOrganizations = false;
128130
const collaboratorsManager = new osparc.share.NewCollaboratorsManager(serializedData, showOrganizations);
129-
collaboratorsManager.setCaption("Add Member");
131+
collaboratorsManager.setCaption("Add Members");
130132
collaboratorsManager.getActionButton().setLabel(this.tr("Add"));
131133
collaboratorsManager.addListener("addCollaborators", e => {
132134
const selectedMembers = e.getData();
@@ -152,17 +154,7 @@ qx.Class.define("osparc.desktop.organizations.MembersList", {
152154
},
153155

154156
__getRolesToolbar: function() {
155-
const hBoxWithRoles = osparc.data.Roles.createRolesOrgInfo();
156-
157-
const changeRoleLabel = this.__changeRoleLabel = new qx.ui.basic.Label().set({
158-
alignX: "left",
159-
value: this.tr("You can change the role of the existing members."),
160-
font: "text-13",
161-
visibility: "hidden",
162-
});
163-
hBoxWithRoles.addAt(changeRoleLabel, 0);
164-
165-
return hBoxWithRoles;
157+
return osparc.data.Roles.createRolesOrgInfo();
166158
},
167159

168160
__getMembersFilter: function() {
@@ -251,16 +243,14 @@ qx.Class.define("osparc.desktop.organizations.MembersList", {
251243
const canIDelete = organization.getAccessRights()["delete"];
252244

253245
const introText = canIWrite ?
254-
this.tr("In order to add new members, type their username or email if this is public.") :
246+
this.tr("You can add new members and change their roles.") :
255247
this.tr("You can't add new members to this Organization. Please contact an Administrator or Manager.");
256248
this.__introLabel.setValue(introText);
257249

258250
this.__memberInvitationButton.set({
259251
enabled: canIWrite
260252
});
261253

262-
this.__changeRoleLabel.setVisibility(canIWrite ? "visible" : "excluded");
263-
264254
const myGroupId = osparc.auth.Data.getInstance().getGroupId();
265255
const membersList = [];
266256
const groupMembers = organization.getGroupMembers();

0 commit comments

Comments
 (0)