Fixes
This commit is contained in:
@@ -120,7 +120,7 @@ const loadContent = async () => {
|
|||||||
let json = await content.json()
|
let json = await content.json()
|
||||||
supported.value = json.supported
|
supported.value = json.supported
|
||||||
|
|
||||||
content = await request(`/backends/${id}`)
|
content = await request(`/backend/${id}`)
|
||||||
json = await content.json()
|
json = await content.json()
|
||||||
backend.value = json.backend
|
backend.value = json.backend
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ const backend = useRoute().params.backend
|
|||||||
const info = ref({})
|
const info = ref({})
|
||||||
|
|
||||||
const loadContent = async () => {
|
const loadContent = async () => {
|
||||||
const response = await request(`/backends/${backend}/info`)
|
const response = await request(`/backend/${backend}/info`)
|
||||||
const json = await response.json()
|
const json = await response.json()
|
||||||
info.value = json.data
|
info.value = json.data
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ const loadContent = async () => {
|
|||||||
onMounted(() => loadContent())
|
onMounted(() => loadContent())
|
||||||
|
|
||||||
const updateValue = async (backend, key, newValue) => {
|
const updateValue = async (backend, key, newValue) => {
|
||||||
const response = await request(`/backends/${backend.name}`, {
|
const response = await request(`/backend/${backend.name}`, {
|
||||||
method: 'PATCH',
|
method: 'PATCH',
|
||||||
body: JSON.stringify([{
|
body: JSON.stringify([{
|
||||||
"key": key,
|
"key": key,
|
||||||
|
|||||||
Reference in New Issue
Block a user