Sha256: 149fb9eaf9048f5ca1da3d3f88428982ffc744218b1ee7c7f3035954ee84af1d
Contents?: true
Size: 1.4 KB
Versions: 30
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.primaryOnly = 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
30 entries across 30 versions & 1 rubygems