Skip to content

Commit 6af41fb

Browse files
juliusknorrnextcloud-command
authored andcommitted
Avoid using lists if there are none on the dashboard
Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent 6c432e4 commit 6af41fb

5 files changed

Lines changed: 11 additions & 8 deletions

File tree

apps/user_status/src/UserStatus.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
-->
2121

2222
<template>
23-
<li>
23+
<component :is="elementTag">
2424
<div class="user-status-menu-item">
2525
<!-- Username display -->
2626
<a v-if="!inline"
@@ -51,7 +51,7 @@
5151
<!-- Status management modal -->
5252
<SetStatusModal v-if="isModalOpen"
5353
@close="closeModal" />
54-
</li>
54+
</component>
5555
</template>
5656

5757
<script>
@@ -94,6 +94,9 @@ export default {
9494
}
9595
},
9696
computed: {
97+
elementTag() {
98+
return this.inline ? 'div' : 'li'
99+
},
97100
/**
98101
* The profile page link
99102
*

dist/dashboard-main.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dashboard-main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/user_status-menu.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/user_status-menu.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)