This repository has been archived on 2022-05-05. You can view files and clone it, but cannot push or open issues or pull requests.
userausfall/src/components/UserTable.vue
2021-04-15 14:24:55 +02:00

54 lines
1.4 KiB
Vue

<template>
<div>
<b-notification
v-if="!user.username"
type="is-warning"
aria-close-label="Close notification"
>
Um dein Konto zu aktivieren, musst du einen
<strong>Benutzernamen</strong> festlegen.
</b-notification>
<b-notification
v-if="!user.confidant_email"
type="is-warning"
aria-close-label="Close notification"
>
Um dein Konto zu aktivieren, musst du eine
<strong>Vertrauensperson</strong> angeben.
</b-notification>
<table class="table is-fullwidth">
<tbody>
<tr>
<td>Kontostatus</td>
<td>nicht aktiviert</td>
</tr>
<tr>
<td>Benutzername</td>
<td><InlineEditor v-model="user.username" @input="user.save()" /></td>
</tr>
<tr>
<td>Vertrauensperson</td>
<td><inline-editor v-model="user.confidant_email" /></td>
</tr>
<tr>
<td>E-Mail-Adresse</td>
<td>{{ user.email }} (bestätigt)</td>
</tr>
</tbody>
</table>
</div>
</template>
<script lang="ts">
import { Component, Prop, Vue } from "vue-property-decorator";
import { User } from "@/api";
import InlineEditor from "@/components/InlineEditor.vue";
@Component({
components: { InlineEditor },
})
export default class UserTable extends Vue {
@Prop() private user!: User;
}
</script>