Revision 9539e23d src/gr/grnet/pithos/web/client/DeleteFileDialog.java
b/src/gr/grnet/pithos/web/client/DeleteFileDialog.java | ||
---|---|---|
49 | 49 |
import com.google.gwt.event.dom.client.ClickEvent; |
50 | 50 |
import com.google.gwt.event.dom.client.ClickHandler; |
51 | 51 |
import com.google.gwt.event.dom.client.KeyCodes; |
52 |
import com.google.gwt.http.client.Response; |
|
52 | 53 |
import com.google.gwt.user.client.Command; |
53 | 54 |
import com.google.gwt.user.client.Event.NativePreviewEvent; |
54 | 55 |
import com.google.gwt.user.client.ui.AbstractImagePrototype; |
... | ... | |
150 | 151 |
else |
151 | 152 |
app.displayError("System error unable to delete file: "+t.getMessage()); |
152 | 153 |
} |
154 |
|
|
155 |
@Override |
|
156 |
protected void onUnauthorized(Response response) { |
|
157 |
app.sessionExpired(); |
|
158 |
} |
|
153 | 159 |
}; |
154 | 160 |
deleteFile.setHeader("X-Auth-Token", app.getToken()); |
155 | 161 |
Scheduler.get().scheduleDeferred(deleteFile); |
Also available in: Unified diff