Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 66312c0

Browse files
author
vikasrohit
committed
SUP-1159, Progress bar to show %complete on upload
-- Added functionality to Try Again button in case of error.
1 parent 8ead12b commit 66312c0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/submissions/submit-file/submit-file.controller.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@
174174
}
175175

176176
function uploadSubmission() {
177+
vm.errorInUpload = false;
177178
vm.uploadProgress = 0;
178179
vm.fileUploadProgress = {};
179180
vm.showProgress = true;

app/submissions/submit-file/submit-file.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,4 +205,4 @@ modal.transition(show="vm.showProgress", background-click-close="true", style="b
205205
span File upload failed
206206
.upload-progress__error-action(ng-show="vm.errorInUpload")
207207
button.tc-btn.tc-btn-s.tc-btn-ghost(type="button", ng-click="vm.cancelRetry()") Cancel
208-
button.tc-btn.tc-btn-s.tc-btn-secondary(type="submit") Try Again
208+
button.tc-btn.tc-btn-s.tc-btn-secondary(type="button", ng-click="submissionForm.$valid && vm.uploadSubmission()") Try Again

0 commit comments

Comments
 (0)