Sha256: 133702a019705727dceaf5ed2cb7dfc5d0e7e70ca7e90171daf47f15c0197301
Contents?: true
Size: 988 Bytes
Versions: 15
Compression:
Stored size: 988 Bytes
Contents
/** * @ngdoc object * @name Bastion.ostree-branches.controller:OstreeBranchesDetailsController * * @requires $scope * @requires OstreeBranch * @requires ApiErrorHandler * * @description * Provides the functionality for the Ostree Branch action pane. */ angular.module('Bastion.ostree-branches').controller('OstreeBranchesDetailsController', ['$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
15 entries across 15 versions & 1 rubygems