@@ -33,16 +33,16 @@ const loading = ref(false)
3333const config = ref <Config | null >(null )
3434const 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
4747const 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