Sha256: f9ce9f034ced7f545c9bf10d32652ff21f0d0381af2512cbb1cd2c19b61d08e8
Contents?: true
Size: 1.4 KB
Versions: 25
Compression:
Stored size: 1.4 KB
Contents
/** * @ngdoc object * @name Bastion.content-views.controller:ContentViewRepositoriesListController * * @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('ContentViewRepositoriesListController', ['$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, 'content_view_id': $scope.$stateParams.contentViewId, 'content_type': 'yum' }, 'queryUnpaged', nutupaneParams); $scope.controllerName = 'katello_repositories'; nutupane.load(); $scope.table = nutupane.table; $scope.removeRepositories = function () { $scope.removeSelectedRepositoriesFromContentView(nutupane, $scope.contentView); }; }] );
Version data entries
25 entries across 25 versions & 1 rubygems