mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 08:21:07 +00:00
more bindonce rollbacks... bo-if seems to work sometimes, othertimes not
This commit is contained in:
parent
2a7adf7285
commit
90582c3709
1 changed files with 13 additions and 13 deletions
|
|
@ -11,7 +11,7 @@ li(bindonce='list', ng-repeat='task in obj[list.type+"s"]', class='task {{taskCl
|
||||||
i.icon-forward
|
i.icon-forward
|
||||||
|
|
||||||
// Icons only available if you own the tasks (aka, hidden from challenge stats)
|
// Icons only available if you own the tasks (aka, hidden from challenge stats)
|
||||||
span(bo-if='!obj._locked')
|
span(ng-if='!obj._locked')
|
||||||
i.icon-tags(tooltip='{{appliedTags(user.tags, task.tags)}}', ng-hide='noTags(task.tags)')
|
i.icon-tags(tooltip='{{appliedTags(user.tags, task.tags)}}', ng-hide='noTags(task.tags)')
|
||||||
// edit
|
// edit
|
||||||
a(ng-hide='task._editing', ng-click='editTask(task)', tooltip='Edit')
|
a(ng-hide='task._editing', ng-click='editTask(task)', tooltip='Edit')
|
||||||
|
|
@ -23,13 +23,13 @@ li(bindonce='list', ng-repeat='task in obj[list.type+"s"]', class='task {{taskCl
|
||||||
a(ng-hide='!task._editing', ng-click='editTask(task);saveTask(task)', tooltip='Save')
|
a(ng-hide='!task._editing', ng-click='editTask(task);saveTask(task)', tooltip='Save')
|
||||||
i.icon-ok(ng-hide='!task._editing')
|
i.icon-ok(ng-hide='!task._editing')
|
||||||
//challenges
|
//challenges
|
||||||
span(bo-if='task.challenge.id')
|
span(ng-if='task.challenge.id')
|
||||||
span(bo-if='task.challenge.broken')
|
span(ng-if='task.challenge.broken')
|
||||||
i.icon-bullhorn(style='background-color:red;', ng-click='task._editing = true', tooltip="Broken Challenge Link", tooltip-placement='right')
|
i.icon-bullhorn(style='background-color:red;', ng-click='task._editing = true', tooltip="Broken Challenge Link", tooltip-placement='right')
|
||||||
span(bo-if='!task.challenge.broken')
|
span(ng-if='!task.challenge.broken')
|
||||||
i.icon-bullhorn(tooltip="Challenge")
|
i.icon-bullhorn(tooltip="Challenge")
|
||||||
// delete
|
// delete
|
||||||
a(bo-if='!task.challenge.id', ng-click='removeTask(obj[list.type+"s"], $index)', tooltip='Delete')
|
a(ng-if='!task.challenge.id', ng-click='removeTask(obj[list.type+"s"], $index)', tooltip='Delete')
|
||||||
i.icon-trash
|
i.icon-trash
|
||||||
|
|
||||||
// chart
|
// chart
|
||||||
|
|
@ -67,27 +67,27 @@ li(bindonce='list', ng-repeat='task in obj[list.type+"s"]', class='task {{taskCl
|
||||||
.task-options(ng-show='task._editing')
|
.task-options(ng-show='task._editing')
|
||||||
|
|
||||||
// Broken Challenge
|
// Broken Challenge
|
||||||
.well(bo-if='task.challenge.broken')
|
.well(ng-if='task.challenge.broken')
|
||||||
div(bo-if='task.challenge.broken=="TASK_DELETED"')
|
div(ng-if='task.challenge.broken=="TASK_DELETED"')
|
||||||
p Broken Challenge Link: this task was part of a challenge, but has been removed from it. What would you like to do?
|
p Broken Challenge Link: this task was part of a challenge, but has been removed from it. What would you like to do?
|
||||||
p
|
p
|
||||||
a(ng-click='unlink(task, "keep")') Keep It
|
a(ng-click='unlink(task, "keep")') Keep It
|
||||||
| |
|
| |
|
||||||
a(ng-click="removeTask(obj[list.type+'s'], $index)") Remove It
|
a(ng-click="removeTask(obj[list.type+'s'], $index)") Remove It
|
||||||
div(bo-if='task.challenge.broken=="CHALLENGE_DELETED"')
|
div(ng-if='task.challenge.broken=="CHALLENGE_DELETED"')
|
||||||
p Broken Challenge Link: this task was part of a challenge, but the challenge (or group) has been deleted. What to do with the orphan tasks?
|
p Broken Challenge Link: this task was part of a challenge, but the challenge (or group) has been deleted. What to do with the orphan tasks?
|
||||||
p
|
p
|
||||||
a(ng-click='unlink(task, "keep-all")') Keep Them
|
a(ng-click='unlink(task, "keep-all")') Keep Them
|
||||||
| |
|
| |
|
||||||
a(ng-click='unlink(task, "remove-all")') Remove Them
|
a(ng-click='unlink(task, "remove-all")') Remove Them
|
||||||
div(bo-if='task.challenge.broken=="CHALLENGE_CLOSED"')
|
div(ng-if='task.challenge.broken=="CHALLENGE_CLOSED"')
|
||||||
p.
|
p.
|
||||||
This challenge has been completed, and the winner was <span class='badge'>{{task.challenge.winner}}</span>! What to do with the orphan tasks?
|
This challenge has been completed, and the winner was <span class='badge'>{{task.challenge.winner}}</span>! What to do with the orphan tasks?
|
||||||
p
|
p
|
||||||
a(ng-click='unlink(task, "keep-all")') Keep Them
|
a(ng-click='unlink(task, "keep-all")') Keep Them
|
||||||
| |
|
| |
|
||||||
a(ng-click='unlink(task, "remove-all")') Remove Them
|
a(ng-click='unlink(task, "remove-all")') Remove Them
|
||||||
//-div(bo-if='task.challenge.broken=="UNSUBSCRIBED"')
|
//-div(ng-if='task.challenge.broken=="UNSUBSCRIBED"')
|
||||||
p Broken Challenge Link: this task was part of a challenge, but you have unsubscribed from the challenge. What to do with the orphan tasks?
|
p Broken Challenge Link: this task was part of a challenge, but you have unsubscribed from the challenge. What to do with the orphan tasks?
|
||||||
p
|
p
|
||||||
a(ng-click="unlink(task, 'keep-all')") Keep Them
|
a(ng-click="unlink(task, 'keep-all')") Keep Them
|
||||||
|
|
@ -104,7 +104,7 @@ li(bindonce='list', ng-repeat='task in obj[list.type+"s"]', class='task {{taskCl
|
||||||
textarea.option-content(rows='3', ng-model='task.notes', ng-disabled='task.challenge.id')
|
textarea.option-content(rows='3', ng-model='task.notes', ng-disabled='task.challenge.id')
|
||||||
|
|
||||||
// if Habit, plus/minus command options
|
// if Habit, plus/minus command options
|
||||||
fieldset.option-group(bo-if='task.type=="habit" && !task.challenge.id')
|
fieldset.option-group(ng-if='task.type=="habit" && !task.challenge.id')
|
||||||
legend.option-title Direction/Actions
|
legend.option-title Direction/Actions
|
||||||
span.task-checker.action-plusminus.select-toggle
|
span.task-checker.action-plusminus.select-toggle
|
||||||
input.visuallyhidden.focusable(id='{{obj._id}}_{{task.id}}-option-plus', type='checkbox', ng-model='task.up')
|
input.visuallyhidden.focusable(id='{{obj._id}}_{{task.id}}-option-plus', type='checkbox', ng-model='task.up')
|
||||||
|
|
@ -127,14 +127,14 @@ li(bindonce='list', ng-repeat='task in obj[list.type+"s"]', class='task {{taskCl
|
||||||
button.task-action-btn.tile(ng-class='{active: task.repeat.s}', type='button', data-day='s', ng-click='task.challenge.id || (task.repeat.s = !task.repeat.s)') S
|
button.task-action-btn.tile(ng-class='{active: task.repeat.s}', type='button', data-day='s', ng-click='task.challenge.id || (task.repeat.s = !task.repeat.s)') S
|
||||||
|
|
||||||
// if Reward, pricing
|
// if Reward, pricing
|
||||||
fieldset.option-group.option-short(bo-if='task.type=="reward" && !task.challenge.id')
|
fieldset.option-group.option-short(ngs-if='task.type=="reward" && !task.challenge.id')
|
||||||
legend.option-title Price
|
legend.option-title Price
|
||||||
input.option-content(type='number', size='16', min='0', step="any", ng-model='task.value')
|
input.option-content(type='number', size='16', min='0', step="any", ng-model='task.value')
|
||||||
.money.input-suffix
|
.money.input-suffix
|
||||||
span.shop_gold
|
span.shop_gold
|
||||||
|
|
||||||
// if Todos, the due date
|
// if Todos, the due date
|
||||||
fieldset.option-group(bo-if='task.type=="todo" && !task.challenge.id')
|
fieldset.option-group(ng-if='task.type=="todo" && !task.challenge.id')
|
||||||
legend.option-title Due Date
|
legend.option-title Due Date
|
||||||
input.option-content.datepicker(type='text', data-date-format='mm/dd/yyyy', ng-model='task.date')
|
input.option-content.datepicker(type='text', data-date-format='mm/dd/yyyy', ng-model='task.date')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue