mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +00:00
NetworkForm: only show proxy options if enabled
This commit is contained in:
parent
df5befb60e
commit
a3f0314f6b
1 changed files with 59 additions and 57 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue