Sha256: 17cd96a3a490f74d530cd39d79db6edb3803c1cf6ae93be672103a1694e6136b

Contents?: true

Size: 1.15 KB

Versions: 91

Compression:

Stored size: 1.15 KB

Contents

/**
 * @ngdoc object
 * @name  Bastion.activation-keys.controller:ActivationKeysController
 *
 * @requires $scope
 * @requires $location
 * @requires translate
 * @requires Nutupane
 * @requires ActivationKey
 * @requires CurrentOrganization
 *
 * @description
 *   Provides the functionality specific to activation keys 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.activation-keys').controller('ActivationKeysController',
    ['$scope', '$location', 'translate', 'Nutupane', 'ActivationKey', 'CurrentOrganization',
    function ($scope, $location, translate, Nutupane, ActivationKey, CurrentOrganization) {

        var params = {
            'organization_id': CurrentOrganization,
            'search': $location.search().search || "",
            'sort_by': 'name',
            'sort_order': 'ASC',
            'paged': true
        };

        var nutupane = new Nutupane(ActivationKey, params);
        $scope.controllerName = 'katello_activation_keys';
        nutupane.masterOnly = true;
        $scope.table = nutupane.table;
    }]
);

Version data entries

91 entries across 91 versions & 1 rubygems

Version Path
katello-3.12.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.11.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.10.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.10.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.10.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.11.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.11.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.10.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.10.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.9.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.10.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.9.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-3.8.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js