Skip to content
Snippets Groups Projects
Commit f7986a23 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Merge branch '410-hide-invitation-field-during-signup-if-not-needed' into 'develop'

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

Closes #410

See merge request funkwhale/funkwhale!540
parents be46fb0e 2420ba8a
No related branches found
No related tags found
No related merge requests found
Hide invitation code field during signup when it's not required (#410)
......@@ -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">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment