mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
fix limitTo for task list
This commit is contained in:
parent
e46155ffc1
commit
ad673e4cbb
3 changed files with 5 additions and 3 deletions
|
|
@ -39,7 +39,8 @@
|
|||
<task-list tasks="vm.tasks"></task-list>
|
||||
|
||||
<h2 class="md-title">Tasks Backlog (for some other time)</h2>
|
||||
<task-list tasks="vm.backlogTasks"></task-list>
|
||||
<task-list tasks="vm.backlogTasks"
|
||||
limit-to="{{vm.limitBacklogTo}}"></task-list>
|
||||
|
||||
|
||||
<md-button class="md-primary"
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
dnd-effect-allowed="move"
|
||||
dnd-moved="vm.tasks.splice($index, 1);"
|
||||
ng-class="{'is-current': vm.currentTask === task, 'is-done':task.isDone}"
|
||||
ng-repeat="task in vm.tasks">
|
||||
ng-repeat="task in vm.tasks|limitTo:vm.limitTo">
|
||||
<ng-md-icon class="handle"
|
||||
flex="none"
|
||||
icon="drag_handle"></ng-md-icon>
|
||||
|
|
|
|||
|
|
@ -21,7 +21,8 @@
|
|||
controllerAs: 'vm',
|
||||
restrict: 'E',
|
||||
scope: {
|
||||
tasks: '='
|
||||
tasks: '=',
|
||||
limitTo:'@'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue