mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 11:40:25 +00:00
rewrite: hack for transient filters for now, fix later
This commit is contained in:
parent
fce194275e
commit
ab9b6e47cf
2 changed files with 1 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ habitrpg.controller("FiltersCtrl", ['$scope', '$rootScope', 'User',
|
|||
function($scope, $rootScope, User) {
|
||||
var user = User.user;
|
||||
$scope._editing = false;
|
||||
user.filters = {}; // FIXME run a migration instead
|
||||
|
||||
$scope.saveOrEdit = function(){
|
||||
if ($scope._editing) {
|
||||
|
|
|
|||
|
|
@ -184,7 +184,6 @@ UserSchema.methods.toJSON = () ->
|
|||
# Custom setter/getter virtuals?
|
||||
UserSchema.pre 'save', (next) ->
|
||||
@markModified('tasks')
|
||||
delete @filters if @filters
|
||||
@._v++ #our own version incrementer
|
||||
next()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue