Skip to content

Commit

Permalink
UI: Reset pagination when returning to inbox from search
Browse files Browse the repository at this point in the history
  • Loading branch information
axllent committed Sep 23, 2023
1 parent b4a4d44 commit 898b36c
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions server/ui-src/components/NavSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default {
<template>
<template v-if="!modals">
<div class="list-group my-2">
<RouterLink to="/" class="list-group-item list-group-item-action">
<RouterLink to="/" class="list-group-item list-group-item-action" @click="pagination.start = 0">
<i class="bi bi-arrow-return-left me-1"></i>
<span class="ms-1">Inbox</span>
<span class="badge rounded-pill ms-1 float-end text-bg-secondary" title="Unread messages"
Expand All @@ -71,18 +71,6 @@ export default {
</button>
</template>

<!-- <button class="list-group-item list-group-item-action" data-bs-toggle="modal" data-bs-target="#MarkAllReadModal"
:disabled="!mailbox.unread">
<i class="bi bi-eye-fill me-1"></i>
Mark all read
</button>
<button class="list-group-item list-group-item-action" data-bs-toggle="modal" data-bs-target="#DeleteAllModal"
:disabled="!mailbox.total">
<i class="bi bi-trash-fill me-1 text-danger"></i>
Delete all
</button> -->

<NavSelected @loadMessages="loadMessages" />
</div>
</template>
Expand Down

0 comments on commit 898b36c

Please sign in to comment.