Skip to content
This repository was archived by the owner on Oct 3, 2025. It is now read-only.

Commit 8b91a2c

Browse files
committed
fix configure view
1 parent 886e461 commit 8b91a2c

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

dashboard/src/views/configure/ConfigureView.vue

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ const loading = ref(false)
3333
const config = ref<Config | null>(null)
3434
const changingConfig = ref<Config | null>(null)
3535
36-
changingConfig.value = config.value = {
37-
clusters: {
38-
'test-cluster': {
39-
id: '11123344',
40-
secret: 'a-secret',
41-
byoc: true,
42-
public_hosts: ['localhost', 'some.example.com'],
43-
},
44-
},
45-
}
36+
// changingConfig.value = config.value = {
37+
// clusters: {
38+
// 'test-cluster': {
39+
// id: '11123344',
40+
// secret: 'a-secret',
41+
// byoc: true,
42+
// public_hosts: ['localhost', 'some.example.com'],
43+
// },
44+
// },
45+
// }
4646
4747
const configChanged = computed(
4848
() => JSON.stringify(changingConfig.value) !== JSON.stringify(config.value),
@@ -74,7 +74,7 @@ onMounted(() => {
7474
<div v-if="loading">
7575
<i>Loading ...</i>
7676
</div>
77-
<template v-else-if="config">
77+
<template v-else-if="config && changingConfig">
7878
<Card class="configure-group">
7979
<template #title>
8080
<div class="flex-row-center configure-group-title">
@@ -236,7 +236,10 @@ onMounted(() => {
236236
<div class="configure-elem">
237237
<div class="configure-button-elem">
238238
<label>{{ tr('title.configures.item.enable_access_log') }}</label>
239-
<InputSwitch v-model="changingConfig.enable_access_log" />
239+
<InputSwitch
240+
:modelValue="!changingConfig.no_access_log"
241+
@update:modelValue="(v) => changingConfig && (changingConfig.no_access_log = !v)"
242+
/>
240243
</div>
241244
<Message size="small" severity="secondary" variant="simple">
242245
{{ tr('description.configures.item.enable_access_log') }}

0 commit comments

Comments
 (0)