From ebc6ba1bbaeca9eb43e1edd5f279dd882180e7e3 Mon Sep 17 00:00:00 2001
From: "J.-S. Caux" <J.S.Caux@uva.nl>
Date: Sat, 8 Feb 2020 14:41:05 +0100
Subject: [PATCH] Make perPage user-editable

---
 .../assets/vue/components/MessagesTable.vue      | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/apimail/static/apimail/assets/vue/components/MessagesTable.vue b/apimail/static/apimail/assets/vue/components/MessagesTable.vue
index 242d85312..c381c4f3c 100644
--- a/apimail/static/apimail/assets/vue/components/MessagesTable.vue
+++ b/apimail/static/apimail/assets/vue/components/MessagesTable.vue
@@ -121,6 +121,19 @@
 	    aria-controls="my-table"
 	    >
 	  </b-pagination>
+	  <b-form-group
+	    label="Per page:"
+	    label-cols-sm="3"
+	    label-align-sm="right"
+	    label-size="sm"
+	    >
+	    <b-form-radio-group
+	      v-model="perPage"
+	      :options="perPageOptions"
+	      class="float-center"
+	      >
+	    </b-form-radio-group>
+	  </b-form-group>
 	</b-col>
       </b-row>
       <hr>
@@ -313,7 +326,8 @@ export default {
 	    draftMessageSelected: null,
 	    queuedMessages: null,
 	    messages: [],
-	    perPage: 10,
+	    perPage: 8,
+	    perPageOptions: [ 8, 16, 32 ],
 	    currentPage: 1,
 	    totalRows: 1,
 	    lastLoaded: null,
-- 
GitLab