summaryrefslogtreecommitdiffstats
path: root/app/configuration/controllers/firmware-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/configuration/controllers/firmware-controller.js')
-rw-r--r--app/configuration/controllers/firmware-controller.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/configuration/controllers/firmware-controller.js b/app/configuration/controllers/firmware-controller.js
index 127a7c2..29d0412 100644
--- a/app/configuration/controllers/firmware-controller.js
+++ b/app/configuration/controllers/firmware-controller.js
@@ -49,6 +49,7 @@ window.angular && (function (angular) {
$scope.file_empty = true;
$scope.uploading = false;
$scope.activate = { reboot: true };
+ $scope.download_error_msg = "";
var pollActivationTimer = undefined;
@@ -156,6 +157,11 @@ window.angular && (function (angular) {
}
$scope.download = function(){
+ $scope.download_error_msg = "";
+ if(!$scope.download_host || !$scope.download_filename){
+ $scope.download_error_msg = "Field is required!";
+ return false;
+ }
$scope.downloading = true;
APIUtils.downloadImage($scope.download_host, $scope.download_filename).then(function(response){
var data = response.data;
OpenPOWER on IntegriCloud