Upload confirmation popup - on discard remove the upload status button
Signed-off-by: Asharani <asharani.murugesh@in.bosch.com>
This commit is contained in:
@@ -544,7 +544,7 @@ public class UploadConfirmationwindow implements Button.ClickListener {
|
||||
if (event.getComponent().getId().equals(SPUIComponetIdProvider.UPLOAD_ARTIFACT_DETAILS_CLOSE)) {
|
||||
uploadConfrimationWindow.close();
|
||||
} else if (event.getComponent().getId().equals(SPUIComponetIdProvider.UPLOAD_DISCARD_DETAILS_BUTTON)) {
|
||||
uploadLayout.clearFileList();
|
||||
uploadLayout.removeUploadedFileDetails();
|
||||
uploadConfrimationWindow.close();
|
||||
} else if (event.getComponent().getId().equals(SPUIComponetIdProvider.UPLOAD_BUTTON)) {
|
||||
processArtifactUpload();
|
||||
|
||||
@@ -520,13 +520,17 @@ public class UploadLayout extends VerticalLayout {
|
||||
if (artifactUploadState.getFileSelected().isEmpty()) {
|
||||
uiNotification.displayValidationError(i18n.get("message.error.noFileSelected"));
|
||||
} else {
|
||||
clearFileList();
|
||||
uploadInfoWindow.clearWindow();
|
||||
hideUploadStatusButton();
|
||||
removeUploadedFileDetails();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void removeUploadedFileDetails() {
|
||||
clearFileList();
|
||||
uploadInfoWindow.clearWindow();
|
||||
hideUploadStatusButton();
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear details.
|
||||
*/
|
||||
@@ -707,7 +711,7 @@ public class UploadLayout extends VerticalLayout {
|
||||
uploadStatusButton.setVisible(true);
|
||||
}
|
||||
|
||||
private void hideUploadStatusButton() {
|
||||
protected void hideUploadStatusButton() {
|
||||
if (uploadStatusButton == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user