adjust frontend to new backend
This commit is contained in:
28
frontend/src/views/auth/LoginView.vue
Normal file
28
frontend/src/views/auth/LoginView.vue
Normal file
@@ -0,0 +1,28 @@
|
||||
<script lang="ts">
|
||||
import {Component, Vue} from 'vue-facing-decorator';
|
||||
import LoginComponent from '@/components/auth/LoginComponent.vue';
|
||||
import CenterOnParent from '@/components/CenterOnParent.vue';
|
||||
|
||||
@Component({
|
||||
name: 'LoginView',
|
||||
components: {
|
||||
CenterOnParent,
|
||||
LoginComponent
|
||||
},
|
||||
})
|
||||
export default class LoginView extends Vue {
|
||||
async onLoggedIn(): Promise<void> {
|
||||
this.$router.push('/');
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<center-on-parent>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<LoginComponent @loggedIn="onLoggedIn"/>
|
||||
</div>
|
||||
</div>
|
||||
</center-on-parent>
|
||||
</template>
|
||||
Reference in New Issue
Block a user