Sha256: 06cc367c94b738cfd810195350194be39f079459624d1c6d187bef2175cf38b9
Contents?: true
Size: 1.48 KB
Versions: 25
Compression:
Stored size: 1.48 KB
Contents
/** * @ngdoc object * @name Bastion.content-views.controller:ContentViewAvailableRepositoriesController * * @requires $scope * @requires Repository * @requires Nutupane * @requires CurrentOrganization * @requires ContentViewRepositoriesUtil * * @description * Provides the functionality specific to ContentViews for use with the Nutupane UI pattern. * Defines the columns to display and the transform function for how to generate each row * within the table. */ angular.module('Bastion.content-views').controller('ContentViewAvailableRepositoriesController', ['$scope', 'Repository', 'Nutupane', 'CurrentOrganization', 'ContentViewRepositoriesUtil', function ($scope, Repository, Nutupane, CurrentOrganization, ContentViewRepositoriesUtil) { var nutupane, nutupaneParams = { 'disableAutoLoad': true }; ContentViewRepositoriesUtil($scope); nutupane = new Nutupane(Repository, { 'organization_id': CurrentOrganization, 'library': true, 'content_type': 'yum', 'content_view_id': $scope.$stateParams.contentViewId, 'available_for': 'content_view' }, 'queryUnpaged', nutupaneParams); $scope.controllerName = 'katello_repositories'; nutupane.load(); $scope.table = nutupane.table; $scope.addRepositories = function (contentView) { $scope.addSelectedRepositoriesToContentView(nutupane, contentView); }; }] );
Version data entries
25 entries across 25 versions & 1 rubygems