From 89c0bcfa6a70f3885ada6073fbfb7c89cd3b3dcb Mon Sep 17 00:00:00 2001 From: Casey Harkins Date: Wed, 10 May 2017 12:00:21 -0500 Subject: [PATCH] Make isActive a method. Computed properties cannot take arguments. As-is, pagination component is entirely broken and will not render. --- lib/components/pagination.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/components/pagination.vue b/lib/components/pagination.vue index ce60c6484af..59772c71007 100755 --- a/lib/components/pagination.vue +++ b/lib/components/pagination.vue @@ -93,9 +93,6 @@ btnSize() { return !this.size || this.size === `default` ? `` : `pagination-${this.size}`; }, - isActive(page) { - return page === this.currentPage; - }, pageLinks() { if (this.currentPage > this.numberOfPages) { this.currentPage = 1; @@ -133,6 +130,9 @@ } }, methods: { + isActive(page) { + return page === this.currentPage; + }, btnVariant(index) { return (index + this.diff === this.currentPage) ? `btn-${this.variant}` : `btn-${this.secondaryVariant}`; },