diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-06-11 15:00:08 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-26 09:27:31 +0100 |
commit | 160563532f87bd901e1cc6972fe238be87a8b63c (patch) | |
tree | 7fd59522b17516bb1656bf264198cc560a352e14 /bitbake/lib/toaster/toastergui/static/js/projectapp.js | |
parent | 2c7ed96b567386d0f57ad8c088790a515d17b7af (diff) | |
download | poky-160563532f87bd901e1cc6972fe238be87a8b63c.tar.gz |
bitbake: toaster: refactor the builds pages
Taking out the managed mode-specific bits in build-related
pages, as there is always only one mode available.
Also refactors the build pages in order to always display
Build objects instead of BuildRequest objects.
(Bitbake rev: 6e46e1e3882b9770872d8a0bb459bc7d5d6bfed3)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 | ||