Sha256: 3b64698c840a428c3c59443fe498a7d1feff8fbf487b6ae8d725dafa8091d138
Contents?: true
Size: 1.1 KB
Versions: 28
Compression:
Stored size: 1.1 KB
Contents
(function () { /** * @ngdoc object * @name Bastion.puppet-modules.controller:PuppetModulesDetailsController * * @description * Provides the functionality for the puppet modules details action pane. */ function PuppetModulesDetailsController($scope, PuppetModule, ApiErrorHandler) { $scope.successMessages = []; $scope.errorMessages = []; $scope.panel = { error: false, loading: true }; if ($scope.puppetModule) { $scope.panel.loading = false; } $scope.puppetModule = PuppetModule.get({id: $scope.$stateParams.puppetModuleId}, function () { $scope.panel.loading = false; }, function (response) { $scope.panel.loading = false; ApiErrorHandler.handleGETRequestErrors(response, $scope); }); } angular .module('Bastion.puppet-modules') .controller('PuppetModulesDetailsController', PuppetModulesDetailsController); PuppetModulesDetailsController.$inject = ['$scope', 'PuppetModule', 'ApiErrorHandler']; })();
Version data entries
28 entries across 28 versions & 1 rubygems