Avoid using lists if there are none on the dashboard

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/33706/head
Julius Härtl 2022-08-26 07:18:47 +07:00
parent ce9c0b5e30
commit 4beae14fee
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 5 additions and 2 deletions

@ -20,7 +20,7 @@
-->
<template>
<li>
<component :is="elementTag">
<div class="user-status-menu-item">
<!-- Username display -->
<a v-if="!inline"
@ -51,7 +51,7 @@
<!-- Status management modal -->
<SetStatusModal v-if="isModalOpen"
@close="closeModal" />
</li>
</component>
</template>
<script>
@ -94,6 +94,9 @@ export default {
}
},
computed: {
elementTag() {
return this.inline ? 'div' : 'li'
},
/**
* The profile page link
*