only file preview plus storage upload missing
git-svn-id: https://svn.research-infrastructures.eu/d4science/gcube/trunk/portlets/user/share-updates@90201 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
c6282abab3
commit
6d9d3b47d3
|
@ -174,6 +174,7 @@ public class ShareUpdateForm extends Composite {
|
|||
if (myLinkPreviewer == null) {
|
||||
uploadProgress.initialize();
|
||||
uploadProgress.setVisible(true);
|
||||
attachButton.setVisible(false);
|
||||
} else {
|
||||
Window.alert("You cannot post two files, please remove the previous one first.");
|
||||
}
|
||||
|
@ -343,6 +344,7 @@ public class ShareUpdateForm extends Composite {
|
|||
public void onFailure(Throwable caught) {
|
||||
uploadProgress.showRegisteringResult(false);
|
||||
preview.clear();
|
||||
attachButton.setVisible(true);
|
||||
}
|
||||
|
||||
public void onSuccess(LinkPreview result) {
|
||||
|
@ -377,6 +379,7 @@ public class ShareUpdateForm extends Composite {
|
|||
* @param result
|
||||
*/
|
||||
private void addPreview(LinkPreview result) {
|
||||
uploadProgress.setVisible(false);
|
||||
myLinkPreviewer = new LinkPreviewer(this, result);
|
||||
preview.add(myLinkPreviewer);
|
||||
}
|
||||
|
@ -386,5 +389,6 @@ public class ShareUpdateForm extends Composite {
|
|||
protected void cancelPreview() {
|
||||
preview.clear();
|
||||
myLinkPreviewer = null;
|
||||
attachButton.setVisible(true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue