Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit aa2bf520
authored
Apr 15, 2019
by
Jonathan Reinink
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make pagination links update history
1 parent
20e4d93f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
resources/js/Shared/Pagination.vue
resources/js/Shared/Pagination.vue
View file @
aa2bf52
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"mt-6 -mb-1 flex flex-wrap"
>
<div
class=
"mt-6 -mb-1 flex flex-wrap"
>
<template
v-for=
"(link, key) in links"
>
<template
v-for=
"(link, key) in links"
>
<div
v-if=
"link.url === null"
:key=
"key"
class=
"mr-1 mb-1 px-4 py-3 text-sm border rounded text-grey"
:class=
"
{ 'ml-auto': link.label === 'Next' }">
{{
link
.
label
}}
</div>
<div
v-if=
"link.url === null"
:key=
"key"
class=
"mr-1 mb-1 px-4 py-3 text-sm border rounded text-grey"
:class=
"
{ 'ml-auto': link.label === 'Next' }">
{{
link
.
label
}}
</div>
<inertia-link
v-else
:key=
"key"
replace
class=
"mr-1 mb-1 px-4 py-3 text-sm border rounded hover:bg-white focus:border-indigo focus:text-indigo"
:class=
"
{ 'bg-white': link.active, 'ml-auto': link.label === 'Next' }" :href="link.url">
{{
link
.
label
}}
</inertia-link>
<inertia-link
v-else
:key=
"key"
class=
"mr-1 mb-1 px-4 py-3 text-sm border rounded hover:bg-white focus:border-indigo focus:text-indigo"
:class=
"
{ 'bg-white': link.active, 'ml-auto': link.label === 'Next' }" :href="link.url">
{{
link
.
label
}}
</inertia-link>
</
template
>
</
template
>
</div>
</div>
</template>
</template>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment