Revision cde22209 src/gr/grnet/pithos/web/client/FilePropertiesDialog.java
b/src/gr/grnet/pithos/web/client/FilePropertiesDialog.java | ||
---|---|---|
133 | 133 |
name.setWidth("100%"); |
134 | 134 |
name.setText(file.getName()); |
135 | 135 |
generalTable.setWidget(0, 1, name); |
136 |
if(file.getParent() != null) |
|
136 |
if(file.getParent() != null) {
|
|
137 | 137 |
generalTable.setText(1, 1, file.getParent().getName()); |
138 |
else |
|
138 |
} |
|
139 |
else { |
|
139 | 140 |
generalTable.setText(1, 1, "-"); |
140 |
generalTable.setText(2, 1, file.getOwner()); |
|
141 |
} |
|
142 |
|
|
143 |
final String ownerID = file.getOwnerID(); |
|
144 |
final String displayName = app.getUserDisplayNameByID(ownerID); |
|
145 |
final String ownerDisplayName; |
|
146 |
if(displayName == null) { |
|
147 |
// FIXME: Get the actual display name and do not use the id |
|
148 |
ownerDisplayName = ownerID; |
|
149 |
} |
|
150 |
else { |
|
151 |
ownerDisplayName = displayName; |
|
152 |
} |
|
153 |
generalTable.setText(2, 1, ownerDisplayName); |
|
141 | 154 |
|
142 | 155 |
final DateTimeFormat formatter = DateTimeFormat.getFormat("d/M/yyyy h:mm a"); |
143 | 156 |
generalTable.setText(3, 1, file.getLastModified() != null ? formatter.format(file.getLastModified()) : ""); |
... | ... | |
251 | 264 |
PutRequest updateFile = new PutRequest(app.getApiPath(), app.getUserID(), path) { |
252 | 265 |
@Override |
253 | 266 |
public void onSuccess(Resource result) { |
254 |
updateMetaData(app.getApiPath(), file.getOwner(), path, newMeta); |
|
267 |
updateMetaData(app.getApiPath(), file.getOwnerID(), path, newMeta);
|
|
255 | 268 |
} |
256 | 269 |
|
257 | 270 |
@Override |
Also available in: Unified diff