Revision b3c3954b src/gr/grnet/pithos/web/client/FilePermissionsDialog.java
b/src/gr/grnet/pithos/web/client/FilePermissionsDialog.java | ||
---|---|---|
143 | 143 |
private VerticalPanel createSharingPanel() { |
144 | 144 |
VerticalPanel permPanel = new VerticalPanel(); |
145 | 145 |
|
146 |
permList = new PermissionsList(images, file.getPermissions(), file.getOwner(), file.getInheritedPermissionsFrom() != null);
|
|
146 |
permList = new PermissionsList(images, file.getPermissions(), file.getOwner(), false);
|
|
147 | 147 |
permPanel.add(permList); |
148 | 148 |
|
149 |
if (file.getInheritedPermissionsFrom() == null) { |
|
150 |
HorizontalPanel permButtons = new HorizontalPanel(); |
|
151 |
Button add = new Button("Add Group", new ClickHandler() { |
|
152 |
@Override |
|
153 |
public void onClick(ClickEvent event) { |
|
154 |
PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, false); |
|
155 |
dlg.center(); |
|
156 |
permList.updatePermissionTable(); |
|
157 |
} |
|
158 |
}); |
|
159 |
add.addStyleName("button"); |
|
160 |
permButtons.add(add); |
|
161 |
permButtons.setCellHorizontalAlignment(add, HasHorizontalAlignment.ALIGN_CENTER); |
|
149 |
HorizontalPanel permButtons = new HorizontalPanel(); |
|
150 |
Button add = new Button("Add Group", new ClickHandler() { |
|
151 |
@Override |
|
152 |
public void onClick(ClickEvent event) { |
|
153 |
PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, false); |
|
154 |
dlg.center(); |
|
155 |
permList.updatePermissionTable(); |
|
156 |
} |
|
157 |
}); |
|
158 |
add.addStyleName("button"); |
|
159 |
permButtons.add(add); |
|
160 |
permButtons.setCellHorizontalAlignment(add, HasHorizontalAlignment.ALIGN_CENTER); |
|
162 | 161 |
|
163 |
final Button addUser = new Button("Add User", new ClickHandler() {
|
|
164 |
@Override
|
|
165 |
public void onClick(ClickEvent event) {
|
|
166 |
PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, true);
|
|
167 |
dlg.center();
|
|
168 |
permList.updatePermissionTable();
|
|
169 |
}
|
|
170 |
});
|
|
171 |
addUser.addStyleName("button");
|
|
172 |
permButtons.add(addUser);
|
|
173 |
permButtons.setCellHorizontalAlignment(addUser, HasHorizontalAlignment.ALIGN_CENTER);
|
|
162 |
final Button addUser = new Button("Add User", new ClickHandler() { |
|
163 |
@Override |
|
164 |
public void onClick(ClickEvent event) { |
|
165 |
PermissionsAddDialog dlg = new PermissionsAddDialog(app, app.getAccount().getGroups(), permList, true); |
|
166 |
dlg.center(); |
|
167 |
permList.updatePermissionTable(); |
|
168 |
} |
|
169 |
}); |
|
170 |
addUser.addStyleName("button"); |
|
171 |
permButtons.add(addUser); |
|
172 |
permButtons.setCellHorizontalAlignment(addUser, HasHorizontalAlignment.ALIGN_CENTER); |
|
174 | 173 |
|
175 |
permButtons.setSpacing(8); |
|
176 |
permButtons.addStyleName("pithos-TabPanelBottom"); |
|
177 |
permPanel.add(permButtons); |
|
178 |
} |
|
174 |
permButtons.setSpacing(8); |
|
175 |
permButtons.addStyleName("pithos-TabPanelBottom"); |
|
176 |
permPanel.add(permButtons); |
|
179 | 177 |
|
180 | 178 |
final Label readForAllNote = new Label("When this option is enabled, the file will be readable" + |
181 | 179 |
" by everyone. By checking this option, you are certifying that you have the right to " + |
Also available in: Unified diff