Display success message after uploading image
Fix includes:
- Displaying an 'Upload complete' message and clearing the image's
file name if the upload succeeds.
- Displaying an error pop-up with reason for failure when the
upload fails.
Change-Id: Id9474b62ed62e1b40ffa018eb273abbf19be26ce
Signed-off-by: CamVan Nguyen <ctnguyen@us.ibm.com>
diff --git a/app/configuration/controllers/firmware-controller.html b/app/configuration/controllers/firmware-controller.html
index 2e5bf25..4d3e2a3 100644
--- a/app/configuration/controllers/firmware-controller.html
+++ b/app/configuration/controllers/firmware-controller.html
@@ -27,6 +27,7 @@
</label>
<input type="button" value="Upload firmware" class="inline button btn-primary float-right" ng-click="upload()"/>
<div class="inline uploading" ng-show="uploading">Upload in progress...</div>
+ <p class="download_success" ng-show="upload_success" role="alert">{{file ? '' : 'Upload complete. Check image tables above.'}}</p>
</div>
<div class=" column firmware__upload-tftp">
<h3 class="h4 bold">Download image file from TFTP server</h3>