1
0
forked from noxious/client

Creating and deleting zones now works

This commit is contained in:
2024-07-07 04:06:59 +02:00
parent a2c39dada1
commit 317906eab5
11 changed files with 175 additions and 60 deletions

View File

@ -59,9 +59,7 @@ const filteredObjects = computed(() => {
if (!searchQuery.value) {
return assetManagerStore.objectList
}
return assetManagerStore.objectList.filter(object =>
object.name.toLowerCase().includes(searchQuery.value.toLowerCase())
)
return assetManagerStore.objectList.filter((object) => object.name.toLowerCase().includes(searchQuery.value.toLowerCase()))
})
onMounted(() => {
@ -70,4 +68,4 @@ onMounted(() => {
assetManagerStore.setObjectList(response)
})
})
</script>
</script>

View File

@ -57,9 +57,7 @@ const filteredTiles = computed(() => {
if (!searchQuery.value) {
return assetManagerStore.tileList
}
return assetManagerStore.tileList.filter(tile =>
tile.toLowerCase().includes(searchQuery.value.toLowerCase())
)
return assetManagerStore.tileList.filter((tile) => tile.toLowerCase().includes(searchQuery.value.toLowerCase()))
})
onMounted(() => {
@ -68,4 +66,4 @@ onMounted(() => {
assetManagerStore.setTileList(response)
})
})
</script>
</script>