Sha256: 2b096fe4b37997a0d0a92b49ade69f35842d2a80d3fef6f4ac0dc6dd9f52e087
Contents?: true
Size: 1.27 KB
Versions: 8
Compression:
Stored size: 1.27 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', '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
8 entries across 8 versions & 1 rubygems