Sha256: 0abe462636fde3284d6775e6942a3a87fd02dd74f60f0bedc85ff6297b64b8ac

Contents?: true

Size: 873 Bytes

Versions: 17

Compression:

Stored size: 873 Bytes

Contents

/**
 * @ngdoc object
 * @name  Bastion.subscriptions.controller:SubscriptionActivationKeysController
 *
 * @requires $scope
 * @requires $q
 * @requires translate
 * @requires Subscription
 *
 * @description
 *   Provides the functionality for the subscription details for activation keys.
 */
angular.module('Bastion.subscriptions').controller('SubscriptionActivationKeysController',
    ['$scope', '$q', 'translate', 'Subscription',
    function ($scope, $q, translate, Subscription) {

        if ($scope.activationKeys) {
            $scope.working = false;
        } else {
            $scope.working = true;
        }

        $scope.table = {};

        Subscription.get({id: $scope.$stateParams.subscriptionId}, function (subscription) {
            $scope.activationKeys = subscription['activation_keys'];
            $scope.working = false;
        });
    }]
);

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
katello-3.4.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js
katello-3.4.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js
katello-3.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js
katello-3.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js
katello-3.4.0.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js
katello-3.4.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js
katello-3.3.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js
katello-3.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js
katello-3.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js
katello-3.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js
katello-3.3.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js
katello-3.3.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js
katello-3.3.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js
katello-3.3.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js
katello-3.3.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js
katello-3.3.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js
katello-3.3.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-activation-keys.controller.js