Revision 57ab6e0b src/gr/grnet/pithos/web/client/FolderPermissionsDialog.java
b/src/gr/grnet/pithos/web/client/FolderPermissionsDialog.java | ||
---|---|---|
123 | 123 |
permPanel.add(permList); |
124 | 124 |
|
125 | 125 |
HorizontalPanel permButtons = new HorizontalPanel(); |
126 |
Button add = new Button("Add Group", new ClickHandler() {
|
|
126 |
Button addUser = new Button("Add User", new ClickHandler() {
|
|
127 | 127 |
@Override |
128 | 128 |
public void onClick(ClickEvent event) { |
129 |
PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, false);
|
|
129 |
PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, true);
|
|
130 | 130 |
dlg.center(); |
131 | 131 |
} |
132 | 132 |
}); |
133 |
add.addStyleName("button"); |
|
134 |
permButtons.add(add); |
|
135 |
permButtons.setCellHorizontalAlignment(add, HasHorizontalAlignment.ALIGN_CENTER); |
|
133 |
addUser.addStyleName("button");
|
|
134 |
permButtons.add(addUser);
|
|
135 |
permButtons.setCellHorizontalAlignment(addUser, HasHorizontalAlignment.ALIGN_CENTER);
|
|
136 | 136 |
|
137 |
Button addUser = new Button("Add User", new ClickHandler() {
|
|
137 |
Button add = new Button("Add Group", new ClickHandler() {
|
|
138 | 138 |
@Override |
139 | 139 |
public void onClick(ClickEvent event) { |
140 |
PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, true);
|
|
140 |
PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, false);
|
|
141 | 141 |
dlg.center(); |
142 | 142 |
} |
143 | 143 |
}); |
144 |
addUser.addStyleName("button"); |
|
145 |
permButtons.add(addUser); |
|
146 |
permButtons.setCellHorizontalAlignment(addUser, HasHorizontalAlignment.ALIGN_CENTER); |
|
144 |
add.addStyleName("button"); |
|
145 |
permButtons.add(add); |
|
146 |
permButtons.setCellHorizontalAlignment(add, HasHorizontalAlignment.ALIGN_CENTER); |
|
147 |
|
|
147 | 148 |
permButtons.setSpacing(8); |
148 | 149 |
permPanel.add(permButtons); |
149 | 150 |
|
Also available in: Unified diff