Sha256: 2ab07cdc9efe708e7f13d3d8077e855a5abe67178e3c8ef4c8752eb4d7b50e14
Contents?: true
Size: 1.31 KB
Versions: 145
Compression:
Stored size: 1.31 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', 'content-credentials', 'content-credentials.new', 'content-credential.info', 'content-credential.products', 'content-credential.repositories' ]; FeatureFlag.addStates('remote_actions', remoteActions); FeatureFlag.addStates('custom_products', customProducts); } angular .module('Bastion.features') .run(KatelloFeatures); KatelloFeatures.$inject = ['FeatureFlag']; })();
Version data entries
145 entries across 145 versions & 1 rubygems