Sha256: 915d189fd5edea6a7170828f5e177c0a8fe62cf7273e00654830f263fdc55432
Contents?: true
Size: 969 Bytes
Versions: 9
Compression:
Stored size: 969 Bytes
Contents
/** * @ngdoc service * @name Bastion.content-hosts.service:ContentHostsHelper * * @description * Helper service that contains functionality common amongst content hosts. */ angular.module('Bastion.content-hosts').service('ContentHostsHelper', function () { this.getSubscriptionStatusColor = function (status) { var colors = { 'valid': 'green', 'partial': 'yellow', 'invalid': 'red', 0: 'green', 1: 'yellow', 2: 'red', 3: 'red' }; return colors[status] ? colors[status] : 'red'; }; this.getGlobalStatusColor = function (status) { var colors = { 0: 'green', 1: 'yellow', 2: 'red' }; return colors[status] ? colors[status] : 'red'; }; } );
Version data entries
9 entries across 9 versions & 1 rubygems