Sha256: d2d4f08a8ac4db3e4c0b45b2a20315a81fe83aeb73968ada511729b604906674
Contents?: true
Size: 1.29 KB
Versions: 20
Compression:
Stored size: 1.29 KB
Contents
/** * @ngdoc object * @name Bastion.content-views.controller:ContentViewAvailableOstreeRepositoriesController * * @requires $scope * @requires Repository * @requires Nutupane * @requires CurrentOrganization * @requires ContentViewRepositoriesUtil * * @description * Provides UI functionality add ostree repositories to a content view */ angular.module('Bastion.content-views').controller('ContentViewAvailableOstreeRepositoriesController', ['$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': 'ostree', 'content_view_id': $scope.$stateParams.contentViewId, 'available_for': 'content_view' }, 'queryUnpaged'); $scope.controllerName = 'katello_repositories'; nutupane.masterOnly = true; $scope.table = nutupane.table; $scope.addRepositories = function (contentView) { $scope.addSelectedRepositoriesToContentView(nutupane, contentView); }; }] );
Version data entries
20 entries across 20 versions & 1 rubygems