Sha256: 0434382e554c33b2a00dcf45960c20acdfc499544e16f677a7e7083232e3d25f
Contents?: true
Size: 857 Bytes
Versions: 29
Compression:
Stored size: 857 Bytes
Contents
/** * @ngdoc filter * @name Bastion.tasks.filter:taskInputReduce * * @description * Omits the parts of task humanized input that are not necessary to * show (such as repository name in tasks list or a repository) */ angular.module('Bastion.tasks') .filter('taskInputReduce', function () { return function (humanizedTaskInput, skippedParts) { if (_.isString(humanizedTaskInput) || !skippedParts) { return humanizedTaskInput; } if (_.isString(skippedParts)) { skippedParts = skippedParts.split(','); } return _.reject(humanizedTaskInput, function (part) { if (part.length === 2) { return _.contains(skippedParts, part[0]); } return false; }); }; });
Version data entries
29 entries across 29 versions & 1 rubygems