Sha256: 5fc6b81d28afaf532a6b9fd220df0d0f3650bfb2937df82b242a66a44c7590b5
Contents?: true
Size: 1.07 KB
Versions: 208
Compression:
Stored size: 1.07 KB
Contents
(function () { /** * @ngdoc filter * @name Bastion.repository-sets.filter:repositorySetsEnabled.filter.js * * @requires translate * * @description * Makes the value of the repository set filter human readable. */ function repositorySetsEnabled(translate) { return function (repositorySet) { var enabledText; if (repositorySet.enabled_content_override === true) { enabledText = translate('Enabled (overridden)'); } else if (repositorySet.enabled_content_override === false) { enabledText = translate('Disabled (overridden)'); } else { if (repositorySet.enabled) { enabledText = translate('Enabled'); } else { enabledText = translate('Disabled'); } } return enabledText; }; } angular.module('Bastion.repository-sets').filter('repositorySetsEnabled', repositorySetsEnabled); repositorySetsEnabled.$inject = ['translate']; })();
Version data entries
208 entries across 208 versions & 1 rubygems