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