diff --git a/software/src/stores/order.store.ts b/software/src/stores/order.store.ts
index 532821e..86f09d0 100644
--- a/software/src/stores/order.store.ts
+++ b/software/src/stores/order.store.ts
@@ -18,9 +18,12 @@ export const useOrderStore = defineStore("orderStore", {
* Get all orders from all accounts from server
*/
async getAllOrders() {
+ this.fetchInProgress = true
+
fetchAllOrders()
.then(res => {
this.orders = res.data
+ this.fetchInProgress = false
})
},
@@ -30,14 +33,17 @@ export const useOrderStore = defineStore("orderStore", {
* @param user User to request orders from
*/
async getOrdersOfAccount(user: AccountModel) {
+ this.fetchInProgress = true
+
fetchUserOrders(user.id)
.then(res => {
this.orders = res.data
+ this.fetchInProgress = false
})
},
async deleteOrder(order: OrderApiModel) {
-
+ // todo
}
}
})
\ No newline at end of file
diff --git a/software/src/stores/preferences.store.ts b/software/src/stores/preferences.store.ts
index f3c1070..e625601 100644
--- a/software/src/stores/preferences.store.ts
+++ b/software/src/stores/preferences.store.ts
@@ -108,6 +108,9 @@ export const usePreferencesStore = defineStore('preferencesStore', {
})
},
+ /**
+ * Request all available static files on server
+ */
async getStaticFiles() {
this.fetchInProgress = true
@@ -118,6 +121,9 @@ export const usePreferencesStore = defineStore('preferencesStore', {
})
},
+ /**
+ * Reset all store values to factory state
+ */
resetToFactorySettings() {
const basketStore = useBasketStore()