Sha256: 692a795c29b00ad40c9f1b0eb5a8ad9822b9057ab9728d98c8561cec111c5bc4
Contents?: true
Size: 968 Bytes
Versions: 11
Compression:
Stored size: 968 Bytes
Contents
/** *@ngdoc service *@name Bastion.organizations.service:FencedPages * *@descriptions * Service that keeps track of pages that require an organization to be selected */ angular.module('Bastion.organizations').service('FencedPages', [function () { var fencedPages = [ 'products', 'activation-keys', 'environments', 'subscriptions', 'gpg-keys', 'sync-plans', 'content-views', 'errata', 'content-hosts', 'host-collections', 'puppet-modules', 'packages' ]; this.addPages = function (pages) { fencedPages = _.uniq(fencedPages.concat(pages)); }; this.list = function () { return fencedPages.slice(); }; this.isFenced = function (toState) { return this.list().indexOf(toState.name.split('.')[0]) !== -1; }; }] );
Version data entries
11 entries across 11 versions & 1 rubygems