Sha256: 0d2b7ebca527be7d16989ebac1aeedd8a8b0ba53d3cf6f1e3c80973605d18c65

Contents?: true

Size: 1.15 KB

Versions: 95

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.primaryOnly = true;
        $scope.table = nutupane.table;
    }]
);

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
katello-4.9.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.8.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.9.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.8.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.9.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.7.6 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.8.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.9.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.9.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.8.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.7.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.8.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.8.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.7.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.8.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.7.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.7.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.7.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.6.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js
katello-4.6.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js