fix: possibility to create accounts without login
This commit is contained in:
@@ -1,14 +1,18 @@
|
||||
<template>
|
||||
<div class="user">
|
||||
<div v-if="user">
|
||||
<h2 class="title is-2">
|
||||
{{ user.userId }}
|
||||
</h2>
|
||||
<lang-changer />
|
||||
<div class="buttons is-centered">
|
||||
<button class="button is-warning" type="button" @click="logout" v-t="'user.logout'"></button>
|
||||
<button class="button is-warning" type="button" @click="purge" v-t="'user.purge'"></button>
|
||||
<confirm-button class="is-danger" @confirm="remove">{{ $t('user.delete') }}</confirm-button>
|
||||
<h2 class="title is-2">{{ user.userId }}</h2>
|
||||
<div class="columns is-centered">
|
||||
<div class="column">
|
||||
<lang-changer />
|
||||
</div>
|
||||
<div class="column">
|
||||
<div class="buttons is-centered">
|
||||
<button class="button is-warning" type="button" @click="logout" v-t="'user.logout'"></button>
|
||||
<button class="button is-warning" type="button" @click="purge" v-t="'user.purge'"></button>
|
||||
<confirm-button class="is-danger" @confirm="remove">{{ $t('user.delete') }}</confirm-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
<account-list />
|
||||
@@ -352,8 +356,4 @@ export default class User extends Vue {
|
||||
.user {
|
||||
padding: 15px 0;
|
||||
}
|
||||
|
||||
.buttons {
|
||||
margin-top: 15px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user