Fix #410: Hide invitation code field during signup when it's not required

This commit is contained in:
Eliot Berriot 2019-01-17 11:31:06 +01:00
parent be46fb0ea0
commit 2420ba8aae
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
2 changed files with 4 additions and 4 deletions

View File

@ -0,0 +1 @@
Hide invitation code field during signup when it's not required (#410)

View File

@ -39,11 +39,10 @@
<label><translate>Password</translate></label>
<password-input v-model="password" />
</div>
<div class="field">
<label v-if="!$store.state.instance.settings.users.registration_enabled.value"><translate>Invitation code</translate></label>
<label v-else><translate>Invitation code (optional)</translate></label>
<div class="field" v-if="!$store.state.instance.settings.users.registration_enabled.value">
<label><translate>Invitation code</translate></label>
<input
:required="!$store.state.instance.settings.users.registration_enabled.value"
required
type="text"
:placeholder="labels.placeholder"
v-model="invitation">