added method descirption

This commit is contained in:
vabene1111 2024-01-19 21:59:49 +08:00
parent e321c80dd6
commit ff77aa7268

View File

@ -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