From eca00b9a0a3095dbc4b5f6efab85b2e918b8dfe1 Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Wed, 7 Mar 2018 23:18:24 +0100
Subject: [PATCH] Hide disable items in pagination

---
 front/src/components/Pagination.vue | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/front/src/components/Pagination.vue b/front/src/components/Pagination.vue
index 71813a18..57ae4235 100644
--- a/front/src/components/Pagination.vue
+++ b/front/src/components/Pagination.vue
@@ -1,6 +1,7 @@
 <template>
   <div class="ui pagination borderless menu">
     <a
+      v-if="current - 1 >= 1"
       @click="selectPage(current - 1)"
       :class="[{'disabled': current - 1 < 1}, 'item']"><i class="angle left icon"></i></a>
     <template>
@@ -16,6 +17,7 @@
       </a>
     </template>
     <a
+      v-if="current + 1 <= maxPage"
       @click="selectPage(current + 1)"
       :class="[{'disabled': current + 1 > maxPage}, 'item']"><i class="angle right icon"></i></a>
   </div>
-- 
GitLab