Sha256: 173b01b9da7734b67bd23147faea813c972733f7168db4da69eef84abaaefbdd
Contents?: true
Size: 726 Bytes
Versions: 191
Compression:
Stored size: 726 Bytes
Contents
/** * @ngdoc object * @name Bastion.content-credentials.filter:contentTypeFilter * * @requires translate * * @description * Provides filter functionality to replace cert with Certificates and gpg_key with GPG Key */ angular.module('Bastion.content-credentials').filter('contentTypeFilter', ['$filter', 'translate', function ($filter, translate) { return function (contentType) { var filtered = translate("Unsupported Type!"); if (contentType === "cert") { filtered = translate("Certificate"); } else if (contentType === "gpg_key") { filtered = translate("GPG Key"); } return filtered; }; }] );
Version data entries
191 entries across 191 versions & 1 rubygems