Sha256: 91f4969f353d1237a77847dc3cdf991bea085ebfc8c55eb91281a8f834d9911d

Contents?: true

Size: 713 Bytes

Versions: 246

Compression:

Stored size: 713 Bytes

Contents

/**
 * @ngdoc filter
 * @name  Bastion.tasks.filter:taskInputCompile
 *
 * @description
 *   Converts the task humanized structure into a flat string
 */
angular.module('Bastion.tasks')
    .filter('taskInputCompile', function () {
        return function (humanizedTaskInput) {
            var parts;

            if (!_.isArray(humanizedTaskInput) && !_.isObject(humanizedTaskInput)) {
                return humanizedTaskInput;
            }

            parts = _.map(humanizedTaskInput, function (part) {
                if (part.length === 2) {
                    return part[1].text;
                }

                return part;
            });

            return parts.join('; ');
        };
    });

Version data entries

246 entries across 246 versions & 1 rubygems

Version Path
katello-4.10.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.9.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.10.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.10.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.8.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.9.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.8.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.9.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.7.6 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.8.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.9.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.9.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.8.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.7.5 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.8.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.8.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.7.4 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.8.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.7.3 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.7.2 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js