Sha256: 0c1c5735861825e8a17fdd351f05902d7bbbb5df6cfe9018b5608a6810ad993b

Contents?: true

Size: 1.48 KB

Versions: 22

Compression:

Stored size: 1.48 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);

        // Labels so breadcrumb strings can be translated
        $scope.label = translate('Host Collections');

        $scope.controllerName = 'katello_host_collections';
        nutupane.primaryOnly = true;

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

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

    }]
);

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
katello-4.14.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.15.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.15.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.14.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.14.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.14.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.14.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.12.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js
katello-4.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js