Sha256: 8596adb00ed7b2944d8ab7249d2b740cf38de8c3a23b3949a31387c81fed08b9
Contents?: true
Size: 970 Bytes
Versions: 140
Compression:
Stored size: 970 Bytes
Contents
/** * @ngdoc object * @name Bastion.ostree-branches.controller:OstreeBranchController * * @requires $scope * @requires OstreeBranch * @requires ApiErrorHandler * * @description * Provides the functionality for the Ostree Branch action pane. */ angular.module('Bastion.ostree-branches').controller('OstreeBranchController', ['$scope', 'OstreeBranch', 'ApiErrorHandler', function ($scope, OstreeBranch, ApiErrorHandler) { $scope.panel = { error: false, loading: true }; if ($scope.branch) { $scope.panel.loading = false; } $scope.branch = OstreeBranch.get({id: $scope.$stateParams.branchId}, function (branch) { $scope.$broadcast('branch.loaded', branch); $scope.panel.loading = false; }, function (response) { $scope.panel.loading = false; ApiErrorHandler.handleGETRequestErrors(response, $scope); }); } ]);
Version data entries
140 entries across 140 versions & 1 rubygems