Sha256: 10c5b470d0824ea341444b533d120c754f3365302f20a7655a5e67e6631552f5

Contents?: true

Size: 1.2 KB

Versions: 9

Compression:

Stored size: 1.2 KB

Contents

/**
 * @ngdoc object
 * @name  Bastion.activation-keys.controller:ActivationKeyAssociationsController
 *
 * @requires $scope
 * @requires translate
 * @requires ActivationKey
 * @requires ContentHostsHelper
 * @requires CurrentOrganization
 *
 * @description
 *   Provides the functionality for activation key associations.
 */
angular.module('Bastion.activation-keys').controller('ActivationKeyAssociationsController',
    ['$scope', 'translate', 'ActivationKey', 'ContentHostsHelper', 'CurrentOrganization',
    function ($scope, translate, ActivationKey, ContentHostsHelper, CurrentOrganization) {

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

        $scope.activationKey.$promise.then(function () {
            ActivationKey.contentHosts({id: $scope.activationKey.id, 'organization_id': CurrentOrganization },
                function (response) {
                    $scope.contentHosts = response.results;
                    $scope.table.working = false;
                });
        });

        $scope.getStatusColor = ContentHostsHelper.getStatusColor;

        $scope.memory = ContentHostsHelper.memory;
    }]
);

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-2.4.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js
katello-2.4.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js
katello-2.4.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js
katello-2.4.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js
katello-2.4.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js
katello-2.4.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js
katello-2.4.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js
katello-2.4.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js
katello-2.4.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js