Sha256: 04b377451cc52922110c7c6d63965794df0590dd10bfd07a84000d1c83621ff2
Contents?: true
Size: 1.25 KB
Versions: 20
Compression:
Stored size: 1.25 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-host.provisioning', 'content-hosts.bulk-actions.packages', 'content-hosts.bulk-actions.errata.list', 'content-hosts.bulk-actions.erratum', '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', 'gpg-keys.new', 'gpg-key.info', 'gpg-key.products', 'gpg-key.repositories' ]; FeatureFlag.addStates('remote_actions', remoteActions); FeatureFlag.addStates('custom_products', customProducts); } angular .module('Bastion.features') .run(KatelloFeatures); KatelloFeatures.$inject = ['FeatureFlag']; })();
Version data entries
20 entries across 20 versions & 1 rubygems