diff options
Diffstat (limited to 'web/html/xui/form/outbound.html')
| -rw-r--r-- | web/html/xui/form/outbound.html | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html index 8bea1fe5..3f11907d 100644 --- a/web/html/xui/form/outbound.html +++ b/web/html/xui/form/outbound.html @@ -134,10 +134,28 @@ <a-form-item label='{{ i18n "pages.xray.wireguard.endpoint" }}'> <a-input v-model.trim="peer.endpoint"></a-input> </a-form-item> - <a-form-item label='{{ i18n "pages.xray.wireguard.publicKey" }}'> + <a-form-item> + <template slot="label"> + <a-tooltip> + <template slot="title"> + <span>{{ i18n "reset" }}</span> + </template> + {{ i18n "pages.xray.wireguard.publicKey" }} + <a-icon @click="peer.publicKey = publicKey=Wireguard.generateKeypair().publicKey"type="sync"> </a-icon> + </a-tooltip> + </template> <a-input v-model.trim="peer.publicKey"></a-input> </a-form-item> - <a-form-item label='{{ i18n "pages.xray.wireguard.psk" }}'> + <a-form-item> + <template slot="label"> + <a-tooltip> + <template slot="title"> + <span>{{ i18n "reset" }}</span> + </template> + {{ i18n "pages.xray.wireguard.psk" }} + <a-icon @click="peer.psk = publicKey=Wireguard.generateKeypair().publicKey"type="sync"> </a-icon> + </a-tooltip> + </template> <a-input v-model.trim="peer.psk"></a-input> </a-form-item> <a-form-item> |
