Do not show closed tasks in task move position form

This commit is contained in:
Frederic Guillot
2016-10-05 20:37:51 -04:00
parent 9159be81ec
commit 4cc856344f
4 changed files with 12 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@@ -42,6 +42,10 @@ Vue.component('task-move-position', {
this.columns.forEach(function(column) {
if (column.id == self.columnId) {
self.tasks = column.tasks;
if (self.tasks.length > 0) {
self.position = parseInt(self.tasks[0]['position']);
}
}
});
},