mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 03:30:25 +00:00
Merge branch 'master' into develop
This commit is contained in:
commit
8db131dbda
3 changed files with 11 additions and 0 deletions
|
|
@ -19,6 +19,9 @@ module.exports.app = (appExports, model) ->
|
|||
model.set '_editingTags', !before, ->
|
||||
location.reload() if before is true #when they're done, refresh the page
|
||||
|
||||
appExports.clearFilters = ->
|
||||
user.set 'filters', {}
|
||||
|
||||
appExports.filtersDeleteTag = (e, el) ->
|
||||
tags = user.get('tags')
|
||||
tagId = $(el).attr('data-tag-id')
|
||||
|
|
|
|||
|
|
@ -202,6 +202,10 @@ viewHelpers = (view) ->
|
|||
arr.push(t.name) if taskTags?[t.id]
|
||||
arr.join(', ')
|
||||
|
||||
# view.fn 'activeFilters', (filters) ->
|
||||
# debugger
|
||||
# (_.find filters, (f) -> f)?
|
||||
|
||||
|
||||
|
||||
module.exports = { viewHelpers, removeWhitespace, randomVal, daysBetween, dayMapping, username }
|
||||
|
|
@ -29,6 +29,10 @@
|
|||
</form>
|
||||
{/}
|
||||
</li>
|
||||
<!--<li class="{#unless activeFilters(_user.filters)}hidden{/}">-->
|
||||
<li>
|
||||
<a rel=tooltip title='Clear Filters' x-bind="click:clearFilters"><i class='icon-remove-sign'></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue