Small fixes with user table
This commit is contained in:
parent
fbb4e4502e
commit
907a51b44b
4 changed files with 5 additions and 4 deletions
|
@ -1,8 +1,8 @@
|
|||
<template>
|
||||
<div>
|
||||
<div style="display: flex">
|
||||
<b-input v-if="isEditing" v-model="editorValue" />
|
||||
<span v-else>{{ value }}</span>
|
||||
<b-button @click="toggleEditor">{{
|
||||
<b-button @click="toggleEditor" style="margin-left: auto">{{
|
||||
isEditing ? "Speichern" : "Bearbeiten"
|
||||
}}</b-button>
|
||||
</div>
|
||||
|
|
|
@ -50,6 +50,7 @@ export default class LoginForm extends Vue {
|
|||
private async doAction() {
|
||||
if (this.mode === "login") {
|
||||
await this.user.login();
|
||||
if (this.$route.name !== "home") this.$router.push({ name: "home" });
|
||||
} else {
|
||||
await this.user.signup();
|
||||
this.$router.push({ name: "login" });
|
||||
|
|
Reference in a new issue