mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
2c7ed96b56
commit
160563532f
@@ -429,13 +429,17 @@ projectApp.controller('prjCtrl', function($scope, $modal, $http, $interval, $loc
|
||||
*/
|
||||
|
||||
$scope.validateData = function () {
|
||||
if ($scope.layers.length === 0) {
|
||||
if ($scope.project.release) {
|
||||
if ($scope.layers.length === 0) {
|
||||
$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>");
|
||||
} else {
|
||||
if ($scope.layeralert !== undefined) {
|
||||
$scope.layeralert.close();
|
||||
$scope.layeralert = undefined;
|
||||
} else {
|
||||
if ($scope.layeralert !== undefined) {
|
||||
$scope.layeralert.close();
|
||||
$scope.layeralert = undefined;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$scope.layeralert = $scope.displayAlert($scope.zone1alerts, "This project is not set to run builds.");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user