Sha256: 9edd157bab8cf18e23872d83472f65a5ed40fdd048912bbca40097ae565d4796
Contents?: true
Size: 1.06 KB
Versions: 20
Compression:
Stored size: 1.06 KB
Contents
/** * @ngdoc object * @name Bastion.repositories.controller:OstreeUpstreamSyncPolicyFilter * * @requires translate * @requires OstreeUpstreamSyncPolicy * * @description * Provides the Ostree Upstream Sync policy filter functionality for the repository details info page. */ angular.module('Bastion.components.formatters').filter('ostreeUpstreamSyncPolicyFilter', ['translate', 'OstreeUpstreamSyncPolicy', function (translate, OstreeUpstreamSyncPolicy) { return function (displayValue, repository) { var policy = repository["ostree_upstream_sync_policy"]; if ( policy === "custom") { return OstreeUpstreamSyncPolicy.syncPolicyName(policy, repository["ostree_upstream_sync_depth"]); } return OstreeUpstreamSyncPolicy.syncPolicyName(policy); }; }]); angular.module('Bastion.components.formatters').filter('upstreamPasswordFilter', [function () { return function (displayValue, repository) { if (repository["upstream_password_exists"]) { return "******"; } return null; }; }]);
Version data entries
20 entries across 20 versions & 1 rubygems