Sha256: 4baae69703939508819bb193250c3a026c1021b550193d44071dc797a85bc672

Contents?: true

Size: 1.36 KB

Versions: 91

Compression:

Stored size: 1.36 KB

Contents

/**
 * @ngdoc object
 * @name  Bastion.host-collections.controller:HostCollectionsController
 *
 * @requires $scope
 * @requires $location
 * @requires translate
 * @requires Nutupane
 * @requires HostCollection
 * @requires CurrentOrganization
 *
 * @description
 *   Provides the functionality specific to host collections 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.host-collections').controller('HostCollectionsController',
    ['$scope', '$location', 'translate', 'Nutupane', 'HostCollection', 'CurrentOrganization',
    function ($scope, $location, translate, Nutupane, HostCollection, CurrentOrganization) {
        var params = {
            'organization_id': CurrentOrganization,
            'search': $location.search().search || "",
            'sort_by': 'name',
            'sort_order': 'ASC',
            'paged': true
        };

        var nutupane = new Nutupane(HostCollection, params);
        $scope.controllerName = 'katello_host_collections';
        nutupane.masterOnly = true;

        $scope.table = nutupane.table;
        $scope.removeRow = nutupane.removeRow;

        $scope.$on("updateContentHostCollection", function (event, hostCollectionRow) {
            $scope.table.replaceRow(hostCollectionRow);
        });

    }]
);

Version data entries

91 entries across 91 versions & 1 rubygems

Version Path
katello-3.16.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.16.1.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.16.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.16.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.17.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.16.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.16.0.rc5.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.16.0.rc5 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.16.0.rc4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.15.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.15.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.16.0.rc4 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.16.0.rc3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.15.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.16.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.16.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.16.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.15.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.16.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-3.15.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js