From 1c85514ac080af69eba6b2f486f2d78ebfadad57 Mon Sep 17 00:00:00 2001 From: Regis Date: Tue, 8 Nov 2016 15:03:25 -0700 Subject: [PATCH] remove uneeded methods --- .../javascripts/vue_pagination/index.js.es6 | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/app/assets/javascripts/vue_pagination/index.js.es6 b/app/assets/javascripts/vue_pagination/index.js.es6 index 2d7ae08053e..089f7ca0281 100644 --- a/app/assets/javascripts/vue_pagination/index.js.es6 +++ b/app/assets/javascripts/vue_pagination/index.js.es6 @@ -8,23 +8,10 @@ 'count', 'pagenum', ], - methods: { - pagestatus(n) { - if (this.getItems[1].prev) { - if (n === +this.pagenum) return true; - } - if (n - 1 === +this.pagenum) return true; - return false; - }, - prevstatus(index) { - if (index > 0) return false; - if (+this.pagenum < 2) return true; - return false; - }, - createSection(n) { return Array.from(Array(n)).map((e, i) => i); }, - }, computed: { - last() { return Math.ceil(+this.count / 5); }, + last() { + return Math.ceil(+this.count / 5); + }, getItems() { const total = +this.last; const page = +this.pagenum;