Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-05-22 11:09:21 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-05-22 11:09:21 +0300
commit0938519f49ab1cabf183ec5dc6629c28daa9fdf9 (patch)
treede7f5a78c0667c4974ff18e634891a0b9d04097b /web/html/xui
parent5f489c3d08b36c9569fa67f0c5bf46be8ada7b21 (diff)
bug fix - KeyContent
Diffstat (limited to 'web/html/xui')
-rw-r--r--web/html/xui/form/tls_settings.html34
1 files changed, 17 insertions, 17 deletions
diff --git a/web/html/xui/form/tls_settings.html b/web/html/xui/form/tls_settings.html
index 35f101ca..52b3cb16 100644
--- a/web/html/xui/form/tls_settings.html
+++ b/web/html/xui/form/tls_settings.html
@@ -77,7 +77,7 @@
<a-radio-button :value="false">{{ i18n "pages.inbounds.certificateContent" }}</a-radio-button>
</a-radio-group>
<a-button v-if="index === 0" type="primary" size="small" @click="inbound.stream.tls.addCert()" style="margin-left: 10px">+</a-button>
- <a-button v-if="inbound.stream.tls.certs.length>1" type="primary" size="small" @click="inbound.stream.tls.removeCert(index)" style="margin-left: 10px">-</a-button>
+ <a-button v-if="inbound.stream.tls.certs.length>1" type="primary" size="small" @click="inbound.stream.tls.removeCert(index)" style="margin-left: 10px">-</a-button>
</a-form-item>
<template v-if="cert.useFile">
<a-form-item label='{{ i18n "pages.inbounds.publicKeyPath" }}'>
@@ -88,14 +88,14 @@
</a-form-item>
<a-button type="primary" icon="import" @click="setDefaultCertData(index)">{{ i18n "pages.inbounds.setDefaultCert" }}</a-button>
</template>
- </template>
- <template v-else>
- <a-form-item label='{{ i18n "pages.inbounds.publicKeyContent" }}'>
- <a-input type="textarea" :rows="3" style="width:300px;" v-model="cert.cert"></a-input>
- </a-form-item>
- <a-form-item label='{{ i18n "pages.inbounds.keyContent" }}'>
- <a-input type="textarea" :rows="3" style="width:300px;" v-model="cert.key"></a-input>
- </a-form-item>
+ <template v-else>
+ <a-form-item label='{{ i18n "pages.inbounds.publicKeyContent" }}'>
+ <a-input type="textarea" :rows="3" style="width:300px;" v-model="cert.cert"></a-input>
+ </a-form-item>
+ <a-form-item label='{{ i18n "pages.inbounds.keyContent" }}'>
+ <a-input type="textarea" :rows="3" style="width:300px;" v-model="cert.key"></a-input>
+ </a-form-item>
+ </template>
</template>
</a-form>
@@ -133,14 +133,14 @@
</a-form-item>
<a-button type="primary" icon="import" @click="setDefaultCertXtls(index)">{{ i18n "pages.inbounds.setDefaultCert" }}</a-button>
</template>
- </template>
- <template v-else>
- <a-form-item label='{{ i18n "pages.inbounds.publicKeyContent" }}'>
- <a-input type="textarea" :rows="3" style="width:300px;" v-model="cert.cert"></a-input>
- </a-form-item>
- <a-form-item label='{{ i18n "pages.inbounds.keyContent" }}'>
- <a-input type="textarea" :rows="3" style="width:300px;" v-model="cert.key"></a-input>
- </a-form-item>
+ <template v-else>
+ <a-form-item label='{{ i18n "pages.inbounds.publicKeyContent" }}'>
+ <a-input type="textarea" :rows="3" style="width:300px;" v-model="cert.cert"></a-input>
+ </a-form-item>
+ <a-form-item label='{{ i18n "pages.inbounds.keyContent" }}'>
+ <a-input type="textarea" :rows="3" style="width:300px;" v-model="cert.key"></a-input>
+ </a-form-item>
+ </template>
</template>
</a-form>