Skip to content

Commit

Permalink
Make isActive a method. (#376)
Browse files Browse the repository at this point in the history
Computed properties cannot take arguments. As-is, pagination
component is entirely broken and will not render.
  • Loading branch information
charkins authored and pi0 committed May 10, 2017
1 parent d7c09fe commit 404d4ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/components/pagination.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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}`;
},
Expand Down

0 comments on commit 404d4ac

Please sign in to comment.