Sha256: 3b92100d7aeda1285c478110d6c971c3aff7974af9067fbfea794f759b7e2f7d
Contents?: true
Size: 1.36 KB
Versions: 14
Compression:
Stored size: 1.36 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' ); nutupane.masterOnly = true; $scope.detailsTable = nutupane.table; $scope.detailsTable.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-views.details.puppet-modules.versions', { contentViewId: $scope.$stateParams.contentViewId, moduleName: moduleName } ); }; }] );
Version data entries
14 entries across 14 versions & 1 rubygems