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/views/User.vue

39 lines
929 B
Vue

<template>
<div class="column is-5-fullhd is-6-widescreen is-7-desktop is-7-tablet">
<b-notification type="is-info" aria-close-label="Close notification">
Dein Konto ist noch nicht aktiv.
<a v-if="user.isTrusted" @click="activate()">Jetzt aktivieren</a>
</b-notification>
<table class="table is-fullwidth">
<tbody>
<tr>
<td>Kontostatus</td>
<td>nicht aktiviert</td>
</tr>
<tr>
<td>Benutzername</td>
<td>{{ user.username }}</td>
</tr>
<tr>
<td>Vertrauensperson</td>
<td></td>
</tr>
</tbody>
</table>
</div>
</template>
<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
import { user } from "@/api";
@Component
export default class Home extends Vue {
user = user;
async activate(): Promise<void> {
await this.user.activate();
}
}
</script>