Revision 57ab6e0b src/gr/grnet/pithos/web/client/FilePermissionsDialog.java
b/src/gr/grnet/pithos/web/client/FilePermissionsDialog.java | ||
---|---|---|
162 | 162 |
permPanel.add(permList); |
163 | 163 |
|
164 | 164 |
HorizontalPanel permButtons = new HorizontalPanel(); |
165 |
Button add = new Button("Add Group", new ClickHandler() {
|
|
165 |
final Button addUser = new Button("Add User", new ClickHandler() {
|
|
166 | 166 |
@Override |
167 | 167 |
public void onClick(ClickEvent event) { |
168 |
PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, false);
|
|
168 |
PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, true);
|
|
169 | 169 |
dlg.center(); |
170 | 170 |
permList.updatePermissionTable(); |
171 | 171 |
} |
172 | 172 |
}); |
173 |
add.addStyleName("button"); |
|
174 |
permButtons.add(add); |
|
175 |
permButtons.setCellHorizontalAlignment(add, HasHorizontalAlignment.ALIGN_CENTER); |
|
173 |
addUser.addStyleName("button");
|
|
174 |
permButtons.add(addUser);
|
|
175 |
permButtons.setCellHorizontalAlignment(addUser, HasHorizontalAlignment.ALIGN_CENTER);
|
|
176 | 176 |
|
177 |
final Button addUser = new Button("Add User", new ClickHandler() {
|
|
177 |
Button add = new Button("Add Group", new ClickHandler() {
|
|
178 | 178 |
@Override |
179 | 179 |
public void onClick(ClickEvent event) { |
180 |
PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, true);
|
|
180 |
PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, false);
|
|
181 | 181 |
dlg.center(); |
182 | 182 |
permList.updatePermissionTable(); |
183 | 183 |
} |
184 | 184 |
}); |
185 |
addUser.addStyleName("button");
|
|
186 |
permButtons.add(addUser);
|
|
187 |
permButtons.setCellHorizontalAlignment(addUser, HasHorizontalAlignment.ALIGN_CENTER);
|
|
185 |
add.addStyleName("button"); |
|
186 |
permButtons.add(add); |
|
187 |
permButtons.setCellHorizontalAlignment(add, HasHorizontalAlignment.ALIGN_CENTER); |
|
188 | 188 |
|
189 | 189 |
permButtons.setSpacing(8); |
190 | 190 |
permButtons.addStyleName("pithos-TabPanelBottom"); |
Also available in: Unified diff