feat: change links to login / register pages
This commit is contained in:
parent
9c04fb4e40
commit
5558d91f44
3 changed files with 37 additions and 48 deletions
|
@ -54,7 +54,9 @@
|
||||||
"usernameRequired": "Please provide a username.",
|
"usernameRequired": "Please provide a username.",
|
||||||
"passwordRequired": "Please provide a password.",
|
"passwordRequired": "Please provide a password.",
|
||||||
"showPassword": "Show the password",
|
"showPassword": "Show the password",
|
||||||
"hidePassword": "Hide the password"
|
"hidePassword": "Hide the password",
|
||||||
|
"noAccountYet": "Don't have an account yet?",
|
||||||
|
"alreadyHaveAnAccount": "Already have an account?"
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"title": "Settings",
|
"title": "Settings",
|
||||||
|
|
|
@ -83,26 +83,24 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="field is-grouped login-buttons">
|
<x-button
|
||||||
<div class="control is-expanded">
|
@click="submit"
|
||||||
<x-button
|
:loading="loading"
|
||||||
@click="submit"
|
tabindex="4"
|
||||||
:loading="loading"
|
:disabled="!allFieldsValid"
|
||||||
tabindex="4"
|
>
|
||||||
:disabled="!allFieldsValid"
|
{{ $t('user.auth.login') }}
|
||||||
>
|
</x-button>
|
||||||
{{ $t('user.auth.login') }}
|
<p class="mt-2" v-if="registrationEnabled">
|
||||||
</x-button>
|
{{ $t('user.auth.noAccountYet') }}
|
||||||
<x-button
|
<router-link
|
||||||
:to="{ name: 'user.register' }"
|
:to="{ name: 'user.register' }"
|
||||||
v-if="registrationEnabled"
|
type="secondary"
|
||||||
type="secondary"
|
tabindex="5"
|
||||||
tabindex="5"
|
>
|
||||||
>
|
{{ $t('user.auth.createAccount') }}
|
||||||
{{ $t('user.auth.createAccount') }}
|
</router-link>
|
||||||
</x-button>
|
</p>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
@ -263,16 +261,6 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.login-buttons {
|
|
||||||
@media screen and (max-width: 450px) {
|
|
||||||
flex-direction: column;
|
|
||||||
|
|
||||||
.control:first-child {
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
margin: 0 0.4rem 0 0;
|
margin: 0 0.4rem 0 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,22 +72,21 @@
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="field is-grouped">
|
<x-button
|
||||||
<div class="control">
|
:loading="loading"
|
||||||
<x-button
|
id="register-submit"
|
||||||
:loading="loading"
|
@click="submit"
|
||||||
id="register-submit"
|
class="mr-2"
|
||||||
@click="submit"
|
:disabled="!everythingValid"
|
||||||
class="mr-2"
|
>
|
||||||
:disabled="!everythingValid"
|
{{ $t('user.auth.createAccount') }}
|
||||||
>
|
</x-button>
|
||||||
{{ $t('user.auth.createAccount') }}
|
<p class="mt-2">
|
||||||
</x-button>
|
{{ $t('user.auth.alreadyHaveAnAccount') }}
|
||||||
<x-button :to="{ name: 'user.login' }" type="secondary">
|
<router-link :to="{ name: 'user.login' }">
|
||||||
{{ $t('user.auth.login') }}
|
{{ $t('user.auth.login') }}
|
||||||
</x-button>
|
</router-link>
|
||||||
</div>
|
</p>
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in a new issue