mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 01:29:21 +00:00
add message about clearing completed todos if length>100
This commit is contained in:
parent
3dde30076c
commit
22b70b9a0a
2 changed files with 5 additions and 2 deletions
|
|
@ -139,9 +139,9 @@ habitrpg
|
||||||
type: 'daily',
|
type: 'daily',
|
||||||
placeHolder: 'New Daily'
|
placeHolder: 'New Daily'
|
||||||
}, {
|
}, {
|
||||||
header: 'Todos',
|
header: 'To-Dos',
|
||||||
type: 'todo',
|
type: 'todo',
|
||||||
placeHolder: 'New Todo'
|
placeHolder: 'New To-Do'
|
||||||
}, {
|
}, {
|
||||||
header: 'Rewards',
|
header: 'Rewards',
|
||||||
type: 'reward',
|
type: 'reward',
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,9 @@ script(id='templates/habitrpg-tasks.html', type="text/ng-template")
|
||||||
input(type='text', ng-model='list.newTask', placeholder='{{list.placeHolder}}', required)
|
input(type='text', ng-model='list.newTask', placeholder='{{list.placeHolder}}', required)
|
||||||
input.addtask-btn(type='submit', value='+', ng-disabled='new{{list.type}}form.$invalid')
|
input.addtask-btn(type='submit', value='+', ng-disabled='new{{list.type}}form.$invalid')
|
||||||
hr
|
hr
|
||||||
|
.alert.alert-warning(ng-if='list.type=="todo" && obj[list.type+"s"].length > 100')
|
||||||
|
| Clear completed To-Dos
|
||||||
|
i.icon-question-sign(popover="You have a lot of To-Dos, which can cause performance issues. Be sure ot clear them periodically (see \"Completed\" tab at the bottom).", popover-trigger='mouseenter', popover-placement='left')
|
||||||
|
|
||||||
// Actual List
|
// Actual List
|
||||||
ul(class='{{list.type}}s', ng-show='obj[list.type + "s"].length > 0', habitrpg-sortable)
|
ul(class='{{list.type}}s', ng-show='obj[list.type + "s"].length > 0', habitrpg-sortable)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue