NetworkForm: only show proxy options if enabled

This commit is contained in:
Mary Strodl 2021-06-15 13:52:39 -04:00
parent df5befb60e
commit a3f0314f6b
No known key found for this signature in database
GPG key ID: 23B7FC1590D8E30E

View file

@ -100,6 +100,21 @@
</div> </div>
<h2>Proxy Settings</h2> <h2>Proxy Settings</h2>
<div class="connect-row">
<label></label>
<div class="input-wrap">
<label for="connect:proxyEnabled">
<input
v-model="defaults.proxyEnabled"
type="checkbox"
id="connect:proxyEnabled"
name="proxyEnabled"
/>
Enable Proxy
</label>
</div>
</div>
<template v-if="defaults.proxyEnabled">
<div class="connect-row"> <div class="connect-row">
<label for="connect:proxyHost">SOCKS Address</label> <label for="connect:proxyHost">SOCKS Address</label>
<div class="input-wrap"> <div class="input-wrap">
@ -156,20 +171,7 @@
/> />
</RevealPassword> </RevealPassword>
</div> </div>
</template>
<div class="connect-row">
<label></label>
<div class="input-wrap">
<label for="connect:proxyEnabled">
<input
v-model="defaults.proxyEnabled"
type="checkbox"
name="proxyEnabled"
/>
Enable Proxy
</label>
</div>
</div>
</template> </template>
<template v-else-if="config.lockNetwork && !$store.state.serverConfiguration.public"> <template v-else-if="config.lockNetwork && !$store.state.serverConfiguration.public">
<h2>Network settings</h2> <h2>Network settings</h2>