mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
display notification title, "more" button to the notification page
This commit is contained in:
parent
1de6fefc59
commit
bdb97e73e9
1 changed files with 12 additions and 1 deletions
|
@ -34,12 +34,23 @@
|
||||||
<div v-if="loading">Loading ...</div>
|
<div v-if="loading">Loading ...</div>
|
||||||
<div class="dropdown-item d-flex" v-for="notification in notifications">
|
<div class="dropdown-item d-flex" v-for="notification in notifications">
|
||||||
<div class="flex-grow-1">
|
<div class="flex-grow-1">
|
||||||
|
<div v-html="notification.title" class="font-weight-bold" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<div v-html="notification.message"
|
<div v-html="notification.message"
|
||||||
style="width: 40em; word-wrap:break-word; white-space: normal"></div>
|
style="width: 40em; word-wrap:break-word; white-space: normal; overflow: hidden; max-height: 100px; text-overflow: ellipsis;">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<a :href="'/dashboard/notification/' + notification.id">More</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="small text-muted">
|
<div class="small text-muted">
|
||||||
[[notification.created_at]]
|
[[notification.created_at]]
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="!notification.read">
|
<div v-if="!notification.read">
|
||||||
<i class="fe fe-check"
|
<i class="fe fe-check"
|
||||||
@click="markAsRead(notification)"
|
@click="markAsRead(notification)"
|
||||||
|
|
Loading…
Reference in a new issue