Sha256: 213823a5c55f1c9fd74c390c960b8819a01d1e726c74817a8d5e9ab19e0c2e88
Contents?: true
Size: 1.4 KB
Versions: 91
Compression:
Stored size: 1.4 KB
Contents
/** * @ngdoc object * @name Bastion.content-views.controller:ContentViewPuppetModulesController * * @requires $scope * @requires Nutupane * @requires ContentView * * @description * Provides functionality to the puppet modules name list. */ angular.module('Bastion.content-views').controller('ContentViewPuppetModuleNamesController', ['$scope', 'Nutupane', 'ContentView', 'CurrentOrganization', 'PuppetModule', function ($scope, Nutupane, ContentView, CurrentOrganization, PuppetModule) { var nutupane = new Nutupane( ContentView, {id: $scope.$stateParams.contentViewId}, 'availablePuppetModuleNames' ); $scope.controllerName = 'katello_content_views'; nutupane.masterOnly = true; $scope.table = nutupane.table; $scope.table.fetchAutocomplete = function (term) { var promise; promise = PuppetModule.autocomplete({'organization_id': CurrentOrganization, search: term}).$promise; return promise.then(function (data) { return data; }); }; $scope.selectVersion = function (moduleName) { $scope.transitionTo('content-view.puppet-modules.versions', { contentViewId: $scope.$stateParams.contentViewId, moduleName: moduleName } ); }; }] );
Version data entries
91 entries across 91 versions & 1 rubygems