Fix #410: Hide invitation code field during signup when it's not required
This commit is contained in:
parent
be46fb0ea0
commit
2420ba8aae
|
@ -0,0 +1 @@
|
||||||
|
Hide invitation code field during signup when it's not required (#410)
|
|
@ -39,11 +39,10 @@
|
||||||
<label><translate>Password</translate></label>
|
<label><translate>Password</translate></label>
|
||||||
<password-input v-model="password" />
|
<password-input v-model="password" />
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field" v-if="!$store.state.instance.settings.users.registration_enabled.value">
|
||||||
<label v-if="!$store.state.instance.settings.users.registration_enabled.value"><translate>Invitation code</translate></label>
|
<label><translate>Invitation code</translate></label>
|
||||||
<label v-else><translate>Invitation code (optional)</translate></label>
|
|
||||||
<input
|
<input
|
||||||
:required="!$store.state.instance.settings.users.registration_enabled.value"
|
required
|
||||||
type="text"
|
type="text"
|
||||||
:placeholder="labels.placeholder"
|
:placeholder="labels.placeholder"
|
||||||
v-model="invitation">
|
v-model="invitation">
|
||||||
|
|
Loading…
Reference in New Issue