Sha256: 07819f0c4e466ec512bf0c0e67a5dc500e7d73049e3e5b27dcb2601745e203ad

Contents?: true

Size: 1.3 KB

Versions: 11

Compression:

Stored size: 1.3 KB

Contents

(function () {

    /**
     * @ngdoc run
     * @name Bastion.run:FeatureFlag
     *
     * @description
     *   Handles checking if a given feature is enabled. Provides this functionality on
     *   the root scope and also checks routes to send the user to a 404.
     */
    function KatelloFeatures(FeatureFlag) {
        var remoteActions = [
            'content-hosts.details.provisioning',
            'content-hosts.bulk-actions.packages',
            'content-hosts.bulk-actions.errata.list',
            'content-hosts.bulk-actions.errata.details',
            'content-hosts.bulk-actions.errata.content-hosts',
            'content-hosts.bulk-actions.environment'
        ];

        var customProducts = [
            'products.new.form',
            'products.discovery',
            'products.discovery.scan',
            'products.discovery.create',
            'gpg-keys.index',
            'gpg-keys.new',
            'gpg-keys.details.info',
            'gpg-keys.details.products',
            'gpg-keys.details.repositories'
        ];

        FeatureFlag.addStates('remote_actions', remoteActions);
        FeatureFlag.addStates('custom_products', customProducts);
    }

    angular
        .module('Bastion.features')
        .run(KatelloFeatures);

    KatelloFeatures.$inject = ['FeatureFlag'];

})();

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
katello-3.2.1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/katello-features.run.js
katello-3.2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/katello-features.run.js
katello-3.2.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/katello-features.run.js
katello-3.2.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/katello-features.run.js
katello-3.2.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/katello-features.run.js
katello-3.2.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/katello-features.run.js
katello-3.2.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/katello-features.run.js
katello-3.1.0.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/katello-features.run.js
katello-3.1.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/katello-features.run.js
katello-3.1.0.rc2.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/katello-features.run.js
katello-3.1.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/katello-features.run.js