Sha256: f16241d7e77a08cd5212303bffe06ff83c91ed99be8dd334262b9e4891bf6067
Contents?: true
Size: 1.31 KB
Versions: 9
Compression:
Stored size: 1.31 KB
Contents
/** * @ngdoc object * @name Bastion.subscriptions.controller:SubscriptionAssociationsContentHostsController * * @requires $scope * @requires translate * @requires Subscription * @requires ContentHostsHelper * * @description * Provides the functionality for the subscription details for content host associations. */ angular.module('Bastion.subscriptions').controller('SubscriptionAssociationsContentHostsController', ['$scope', 'translate', 'Subscription', 'ContentHostsHelper', function ($scope, translate, Subscription, ContentHostsHelper) { if ($scope.contentHosts) { $scope.working = false; } else { $scope.working = true; } Subscription.get({id: $scope.$stateParams.subscriptionId}, function (subscription) { $scope.contentHosts = subscription.systems; $scope.working = false; }); $scope.getSubscriptionStatusColor = ContentHostsHelper.getSubscriptionStatusColor; $scope.memory = ContentHostsHelper.memory; $scope.virtual = function (facts) { if (angular.isUndefined(facts.virt) || angular.isUndefined(facts.virt['is_guest'])) { return false; } return (facts.virt['is_guest'] === true || facts.virt['is_guest'] === 'true'); }; }] );
Version data entries
9 entries across 9 versions & 1 rubygems