shrug
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -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)" />
|
||||
|
||||
@@ -20,6 +20,6 @@ export default defineConfig({
|
||||
server: {
|
||||
allowedHosts: true,
|
||||
host: true,
|
||||
port: 5173
|
||||
port: 5173,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user