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

Version Path
katello-4.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.15.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.14.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.14.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.14.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.14.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.12.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.11.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js
katello-4.11.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/repository-sets/repository-sets-enabled.filter.js