Rewrite component to change user/group role

This commit is contained in:
Frederic Guillot
2016-12-09 20:35:40 -05:00
parent 86d04bc0ef
commit 67d01951f5
13 changed files with 233 additions and 144 deletions

View File

@@ -122,11 +122,11 @@ KB.component('task-move-position', function (containerElement, options) {
var columnId = getColumnId();
var container = KB.dom('div').attr('id', 'form-tasks');
options.board.forEach(function(swimlane) {
options.board.forEach(function (swimlane) {
if (swimlaneId === swimlane.id) {
swimlane.columns.forEach(function(column) {
swimlane.columns.forEach(function (column) {
if (columnId === column.id) {
column.tasks.forEach(function(task) {
column.tasks.forEach(function (task) {
tasks.push({'value': task.position, 'text': '#' + task.id + ' - ' + task.title});
});
}