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

Update paginator #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions Components/Paginator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@
</svg>
</inertia-link>
<div v-for="link in paginator.links">
<inertia-link v-if="!isFirstOrLastOrDots(link.label)"
:class="{'bg-blue-200' : link.active===true}"

<inertia-link v-if="!isFirstOrLastOrDots(link.label) && link.url !== null" :class="{'bg-blue-200' : link.active===true}"
:href="link.url"
class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-700 bg-white border border-gray-300 leading-5 hover:text-gray-500 focus:z-10 focus:outline-none focus:ring ring-gray-300 focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150"
>
{{ link.label }}
<spa v-html="link.label"></span>
</inertia-link>
<span v-else-if="link.label==='...'" aria-disabled="true"
class="relative inline-flex items-center px-4 py-2 -ml-px text-sm font-medium text-gray-700 bg-white border border-gray-300 cursor-default leading-5">
Expand Down