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.15.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.15.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.14.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.14.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.14.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.14.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.14.0.rc1.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.14.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.13.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.13.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.12.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.13.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.12.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.12.0.rc3 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.12.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.12.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.11.1 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.11.0 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.11.0.rc2 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js
katello-4.11.0.rc1 engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js