Sha256: dd2afbc2ee1d630987916ca07ee16569e2e55da7f0fe9d8395c2b8b70a8501eb
Contents?: true
Size: 1011 Bytes
Versions: 111
Compression:
Stored size: 1011 Bytes
Contents
(function () { /** * @ngdoc object * @name Bastion.puppet-modules.controller:PuppetModuleController * * @description * Provides the functionality for the puppet modules details action pane. */ function PuppetModuleController($scope, PuppetModule, ApiErrorHandler) { $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('PuppetModuleController', PuppetModuleController); PuppetModuleController.$inject = ['$scope', 'PuppetModule', 'ApiErrorHandler']; })();
Version data entries
111 entries across 111 versions & 1 rubygems