Skip to content

Commit b48e7dc

Browse files
committed
fix NetworkForm.vue config to serverconfig
1 parent 48094ae commit b48e7dc

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

client/components/NetworkForm.vue

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -178,39 +178,22 @@
178178
<template v-else-if="config.lockNetwork && !store.state.serverConfiguration?.public">
179179
<h2>Network settings</h2>
180180
<div class="connect-row">
181-
<label for="connect:name">Name</label>
181+
<label for="connect:name">Network</label>
182182
<select
183183
id="connect:name"
184184
v-model="defaults.name"
185185
class="input"
186186
name="name"
187187
>
188188
<option
189-
v-for="network in config.networks"
189+
v-for="network in store.state.serverConfiguration?.networks"
190190
:key="network.name"
191191
:value="network.name"
192192
>
193193
{{ network.name }}
194194
</option>
195195
</select>
196196
</div>
197-
<div class="connect-row">
198-
<label for="connect:password">Password</label>
199-
<RevealPassword
200-
v-slot:default="slotProps"
201-
class="input-wrap password-container"
202-
>
203-
<input
204-
id="connect:password"
205-
v-model="defaults.password"
206-
class="input"
207-
:type="slotProps.isVisible ? 'text' : 'password'"
208-
placeholder="Server password (optional)"
209-
name="password"
210-
maxlength="300"
211-
/>
212-
</RevealPassword>
213-
</div>
214197
</template>
215198

216199
<h2>User preferences</h2>

0 commit comments

Comments
 (0)