mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 17:55:18 +02:00
Fix #410: Hide invitation code field during signup when it's not required
This commit is contained in:
parent
be46fb0ea0
commit
2420ba8aae
2 changed files with 4 additions and 4 deletions
1
changes/changelog.d/410.enhancement
Normal file
1
changes/changelog.d/410.enhancement
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue