Skeleton loader
This commit is contained in:
1 parent
ed4fa90f75
commit
0cf0c6be76
20 files changed
+458
-286
No files matched your search
@@ -33,16 +33,24 @@ export const useShoppingStore = defineStore("shoppingStore", {
|
||||
},
|
||||
|
||||
async getCities() {
|
||||
const feedbackStore = useFeedbackStore()
|
||||
feedbackStore.fetchDataFromServerInProgress = true
|
||||
|
||||
await fetchAllCities()
|
||||
.then(result => {
|
||||
this.cities = result.data
|
||||
feedbackStore.fetchDataFromServerInProgress = false
|
||||
})
|
||||
},
|
||||
|
||||
async getGenres() {
|
||||
const feedbackStore = useFeedbackStore()
|
||||
feedbackStore.fetchDataFromServerInProgress = true
|
||||
|
||||
await fetchAllGenres()
|
||||
.then(result => {
|
||||
this.genres = result.data
|
||||
feedbackStore.fetchDataFromServerInProgress = false
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user