Sha256: c61ce9dcb3a6b2d15567d867e80d05fc377d998e88d144847d42b4de97b349ca
Contents?: true
Size: 1.28 KB
Versions: 31
Compression:
Stored size: 1.28 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; ContentViewRepositoriesUtil($scope); nutupane = new Nutupane(Repository, { 'organization_id': CurrentOrganization, 'content_view_id': $scope.$stateParams.contentViewId, 'content_type': 'yum' }, 'queryUnpaged'); nutupane.load(); $scope.repositoriesTable = nutupane.table; $scope.removeRepositories = function () { $scope.removeSelectedRepositoriesFromContentView(nutupane, $scope.contentView); }; }] );
Version data entries
31 entries across 31 versions & 1 rubygems