autosync shopping list and settings

This commit is contained in:
vabene1111
2020-09-21 23:54:46 +02:00
parent 086a4aea47
commit f91d9fcfe2
8 changed files with 69 additions and 3 deletions

View File

@@ -293,8 +293,13 @@
}
this.loading = false
}
},
{% if request.user.userpreference.shopping_auto_sync > 0 %}
setInterval(() => {
this.loadShoppingList()
}, {{ request.user.userpreference.shopping_auto_sync }} * 1000 )
{% endif %}
},
methods: {
/*
warnPageLeave: function (event) {