Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ux): tickets: hide bottom bar if there are no tickets #1162

Merged
merged 1 commit into from
May 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(ux): tickets: hide bottom bar if no tickets
  • Loading branch information
ssiyad committed May 13, 2023
commit 21f8d78dc9b38e71e34b5f5ef32ea6b98c8f50fd
17 changes: 14 additions & 3 deletions desk/src/pages/desk/Tickets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@
</div>
</div>
</div>
<div class="divide-y overflow-x-scroll px-6 py-2 text-base">
<div
v-if="ticketList.totalCount"
class="divide-y overflow-x-scroll px-6 py-2 text-base"
>
<div
v-for="t in ticketList.list.data"
:key="t.name"
Expand Down Expand Up @@ -125,8 +128,16 @@
</div>
</div>
</div>
<div class="grow"></div>
<div class="flex justify-between border-t p-3 text-base">
<div class="flex grow items-center justify-center text-sm text-gray-800">
<div v-if="!ticketList.totalCount">
🎉 Great news! There are currently no tickets to display. Keep up the
good work!
</div>
</div>
<div
v-if="ticketList.totalCount"
class="flex justify-between border-t p-3 text-base"
>
<div class="text-gray-600">
Showing {{ ticketList.startFrom }} to {{ ticketList.endAt }} of
{{ ticketList.totalCount }}
Expand Down