From ff77aa7268b8552276ce1b66d95c8a65a4cc61b0 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Fri, 19 Jan 2024 21:59:49 +0800 Subject: [PATCH] added method descirption --- vue/src/stores/ShoppingListStore.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vue/src/stores/ShoppingListStore.js b/vue/src/stores/ShoppingListStore.js index 1bd24dd1..a008babb 100644 --- a/vue/src/stores/ShoppingListStore.js +++ b/vue/src/stores/ShoppingListStore.js @@ -169,6 +169,10 @@ export const useShoppingListStore = defineStore(_STORE_ID, { }) } }, + /** + * perform auto sync request to special endpoint returning only entries changed since last auto sync + * only updates local entries that are older than the server version + */ autosync() { if (!this.currently_updating && this.autosync_has_focus) { this.currently_updating = true