1
0
forked from noxious/client

Re-added resolution, minor improvements

This commit is contained in:
2024-09-19 23:25:42 +02:00
parent 26eb62b054
commit 858685fe5f
3 changed files with 9 additions and 25 deletions

View File

@ -22,20 +22,6 @@ export const useAssetStore = defineStore('assets', {
return false
})
},
fetchAssetsByZoneId2(zoneId: number, successCallback, errorCallback) {
fetch(config.server_endpoint + '/assets/' + zoneId)
.then((response) => response.json())
.then((assets) => {
this.setAssets(assets)
successCallback()
return true
})
.catch((error) => {
errorCallback()
console.error('Error fetching assets:', error)
return false
})
},
async fetchAssetsByZoneId(zoneId: number) {
return fetch(config.server_endpoint + '/assets/' + zoneId)
.then((response) => response.json())