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

Version Path
katello-4.0.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-3.18.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-4.0.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-4.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-3.18.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-4.0.1.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-3.18.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-4.0.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-3.18.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-4.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-4.0.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-4.0.0.rc3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-4.0.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-3.18.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-3.18.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-3.17.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-4.0.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-3.18.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-3.17.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js
katello-4.0.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-module.controller.js