mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
autosync shopping list and settings
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user