feat: change links to login / register pages

This commit is contained in:
kolaente 2021-12-11 22:15:43 +01:00 committed by Dominik Pschenitschni
parent 9c04fb4e40
commit 5558d91f44
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
3 changed files with 37 additions and 48 deletions

View file

@ -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",

View file

@ -83,8 +83,6 @@
</div> </div>
</div> </div>
<div class="field is-grouped login-buttons">
<div class="control is-expanded">
<x-button <x-button
@click="submit" @click="submit"
:loading="loading" :loading="loading"
@ -93,16 +91,16 @@
> >
{{ $t('user.auth.login') }} {{ $t('user.auth.login') }}
</x-button> </x-button>
<x-button <p class="mt-2" v-if="registrationEnabled">
{{ $t('user.auth.noAccountYet') }}
<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') }}
</x-button> </router-link>
</div> </p>
</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;
} }

View file

@ -72,8 +72,6 @@
</p> </p>
</div> </div>
<div class="field is-grouped">
<div class="control">
<x-button <x-button
:loading="loading" :loading="loading"
id="register-submit" id="register-submit"
@ -83,11 +81,12 @@
> >
{{ $t('user.auth.createAccount') }} {{ $t('user.auth.createAccount') }}
</x-button> </x-button>
<x-button :to="{ name: 'user.login' }" type="secondary"> <p class="mt-2">
{{ $t('user.auth.alreadyHaveAnAccount') }}
<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>