Sha256: 7b9b78a1b41babca30fce24126775667e0f3e79060621a585eb832b33f349983
Contents?: true
Size: 1.57 KB
Versions: 25
Compression:
Stored size: 1.57 KB
Contents
(function () { /** * @ngdoc object * @name Bastion.content-views.controller:ContentViewOstreeRepositoriesListController * * @requires $scope * @requires Repository * @requires Nutupane * @requires CurrentOrganization * @requires ContentViewRepositoriesUtil * * @description * Provides UI functionality list/remove ostree repositories from a content view */ function ContentViewOstreeRepositoriesListController($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': 'ostree' }, 'queryUnpaged', nutupaneParams); $scope.controllerName = 'katello_repositories'; nutupane.masterOnly = true; nutupane.load(); $scope.table = nutupane.table; $scope.removeRepositories = function () { $scope.removeSelectedRepositoriesFromContentView(nutupane, $scope.contentView); }; } angular .module('Bastion.content-views') .controller('ContentViewOstreeRepositoriesListController', ContentViewOstreeRepositoriesListController); ContentViewOstreeRepositoriesListController.$inject = [ '$scope', 'Repository', 'Nutupane', 'CurrentOrganization', 'ContentViewRepositoriesUtil' ]; })();
Version data entries
25 entries across 25 versions & 1 rubygems