Sha256: c0cd013754c5e0b386763e0a64802a21b8eacce2c59f3e274084d2808a95b249
Contents?: true
Size: 1.34 KB
Versions: 6
Compression:
Stored size: 1.34 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; 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'); nutupane.load(); $scope.table = nutupane.table; $scope.addRepositories = function (contentView) { $scope.addSelectedRepositoriesToContentView(nutupane, contentView); }; }] );
Version data entries
6 entries across 6 versions & 1 rubygems