Fix #2042 Back Link To Login Page

This commit is contained in:
Moriz Wahl 2019-10-29 23:52:50 +01:00
parent b4896c3839
commit dcb4196a1a

View File

@ -56,29 +56,32 @@
<sweetalert-icon icon="error" /> <sweetalert-icon icon="error" />
</transition> </transition>
<ds-text align="center">{{ error.message }}</ds-text> <ds-text align="center">{{ error.message }}</ds-text>
<ds-space centered class="space-top">
<nuxt-link to="/login">{{ $t('site.back-to-login') }}</nuxt-link>
</ds-space>
</template> </template>
</div> </div>
</template> </template>
<script> <script>
import gql from 'graphql-tag' import gql from 'graphql-tag'
import { SweetalertIcon } from 'vue-sweetalert-icons' import { SweetalertIcon } from 'vue-sweetalert-icons'
export const SignupMutation = gql` export const SignupMutation = gql`
mutation($email: String!) { mutation($email: String!) {
Signup(email: $email) { Signup(email: $email) {
email email
} }
} }
` `
export const SignupByInvitationMutation = gql` export const SignupByInvitationMutation = gql`
mutation($email: String!, $token: String!) { mutation($email: String!, $token: String!) {
SignupByInvitation(email: $email, token: $token) { SignupByInvitation(email: $email, token: $token) {
email email
} }
} }
` `
export default { export default {
name: 'Signup', name: 'Signup',
components: { components: {
SweetalertIcon, SweetalertIcon,
@ -148,5 +151,10 @@ export default {
} }
}, },
}, },
} }
</script> </script>
<style>
.space-top {
margin-top: 6ex;
}
</style>