This commit is contained in:
iamBadgers
2026-04-26 16:38:37 -07:00
parent a3bd1b2177
commit 8c45fdb472
3 changed files with 6 additions and 5 deletions

View File

@@ -135,7 +135,7 @@ const availableVersion = ref([11, 12])
const tableName = ref()
const tableLink = ref()
var interval
var interval: number
onMounted(() => {
interval = setInterval(() => {
@@ -195,7 +195,7 @@ function readFoundryStatus() {
if (table.active) {
axios.get(`/${table.table_link}/api/status`).then((resp) => {
if (resp.status = 200) {
foundryStatus.running = !!resp.data.version
foundryStatus.running = resp.data.version
console.log(resp)
console.log(foundryStatus)
foundryStatus.active = resp.data.active
@@ -205,7 +205,7 @@ function readFoundryStatus() {
foundryStatus.running = false
foundryStatus.active = false
foundryStatus.world = 'Not Loaded'
foundryStatus.users = '-'
foundryStatus.users = 0
}
})
}
@@ -232,7 +232,7 @@ function stopTable() {
foundryStatus.running = false
foundryStatus.active = false
foundryStatus.world = 'Not Loaded'
foundryStatus.users = '-'
foundryStatus.users = 0
})
}

View File

@@ -126,6 +126,7 @@ function buildButtonModel(table: any) {
</a>
</template>
</Column>
<Column header="Close">
<template #body="slotProps">
<Button label="Close" @click="stopTable(slotProps.data.id)" />

View File

@@ -20,6 +20,6 @@ export default defineConfig({
server: {
allowedHosts: true,
host: true,
port: 5173
port: 5173,
}
})