Sha256: d7bb12a4884ab30bbad2236a97274963116bc0c97c7cd1ee376cda68695c3f0d

Contents?: true

Size: 1.39 KB

Versions: 25

Compression:

Stored size: 1.39 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, nutupaneParams = {
            'disableAutoLoad': true
        };
        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', nutupaneParams);
        $scope.controllerName = 'katello_repositories';

        nutupane.masterOnly = true;
        nutupane.load();

        $scope.table = nutupane.table;

        $scope.addRepositories = function (contentView) {
            $scope.addSelectedRepositoriesToContentView(nutupane, contentView);
        };
    }]
);

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
katello-3.8.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-ostree-repositories.controller.js
katello-3.7.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-ostree-repositories.controller.js
katello-3.8.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-ostree-repositories.controller.js
katello-3.7.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-ostree-repositories.controller.js
katello-3.7.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-ostree-repositories.controller.js