diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/projectapp.js')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/projectapp.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/projectapp.js b/bitbake/lib/toaster/toastergui/static/js/projectapp.js index b2e65c5bb5..40e2e1fffa 100644 --- a/bitbake/lib/toaster/toastergui/static/js/projectapp.js +++ b/bitbake/lib/toaster/toastergui/static/js/projectapp.js | |||
@@ -429,13 +429,17 @@ projectApp.controller('prjCtrl', function($scope, $modal, $http, $interval, $loc | |||
429 | */ | 429 | */ |
430 | 430 | ||
431 | $scope.validateData = function () { | 431 | $scope.validateData = function () { |
432 | if ($scope.layers.length === 0) { | 432 | if ($scope.project.release) { |
433 | if ($scope.layers.length === 0) { | ||
433 | $scope.layeralert = $scope.displayAlert($scope.zone1alerts, "You need to add some layers to this project. <a href=\""+$scope.urls.layers+"\">View all layers available in Toaster</a> or <a href=\""+$scope.urls.importlayer+"\">import a layer</a>"); | 434 | $scope.layeralert = $scope.displayAlert($scope.zone1alerts, "You need to add some layers to this project. <a href=\""+$scope.urls.layers+"\">View all layers available in Toaster</a> or <a href=\""+$scope.urls.importlayer+"\">import a layer</a>"); |
434 | } else { | 435 | } else { |
435 | if ($scope.layeralert !== undefined) { | 436 | if ($scope.layeralert !== undefined) { |
436 | $scope.layeralert.close(); | 437 | $scope.layeralert.close(); |
437 | $scope.layeralert = undefined; | 438 | $scope.layeralert = undefined; |
439 | } | ||
438 | } | 440 | } |
441 | } else { | ||
442 | $scope.layeralert = $scope.displayAlert($scope.zone1alerts, "This project is not set to run builds."); | ||
439 | } | 443 | } |
440 | }; | 444 | }; |
441 | 445 | ||