Skip to content

Commit

Permalink
fix: js lint and missing cp keys
Browse files Browse the repository at this point in the history
  • Loading branch information
knownasilya committed Sep 10, 2020
1 parent 0a86c8c commit 5cd8dda
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions addon/components/page-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default Component.extend({
seperator: '…',
selected: null,

url: computed('urlTemplate', 'page', function () {
url: computed('firstPage', 'firstPageUrlTemplate', 'page', 'urlTemplate', function () {
let urlTemplate = this.urlTemplate;
let current = this.page;
let firstPage = this.firstPage;
Expand All @@ -30,7 +30,7 @@ export default Component.extend({
}
}),

isDots: computed('page', function () {
isDots: computed('page', 'seperator', function () {
let seperator = this.seperator;
let page = this.page;

Expand Down
12 changes: 6 additions & 6 deletions addon/components/pagination-pager.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default Component.extend({
firstPageUrlTemplate: null,
lastPage: alias('count'),

previousUrl: computed('urlTemplate', 'current', 'firstPage', function () {
previousUrl: computed('current', 'firstPage', 'firstPageUrlTemplate', 'urlTemplate', function () {
let urlTemplate = this.urlTemplate;
let current = this.current;
let firstPage = this.firstPage;
Expand Down Expand Up @@ -57,7 +57,7 @@ export default Component.extend({
return urlTemplate;
}),

firstUrl: computed('urlTemplate', 'current', 'firstPage', function () {
firstUrl: computed('current', 'firstPage', 'firstPageUrlTemplate', 'urlTemplate', function () {
let urlTemplate = this.urlTemplate;
let firstPage = this.firstPage;
let firstPageUrlTemplate = this.firstPageUrlTemplate;
Expand All @@ -84,7 +84,7 @@ export default Component.extend({
return Number(this.current);
}),

paginationSizeClass: computed('paginationSize', function () {
paginationSizeClass: computed('pager', 'paginationSize', 'size', function () {
let size = this.size;
let pager = this.pager;

Expand All @@ -93,7 +93,7 @@ export default Component.extend({
: '';
}),

isFirst: computed('firstPage', 'current', function () {
isFirst: computed('current', 'currentPage', 'firstPage', function () {
let currentPage = parseInt(this.currentPage);
let firstPage = parseInt(this.firstPage);

Expand All @@ -102,7 +102,7 @@ export default Component.extend({

isFirstDisabled: or('disabled', 'isFirst'),

isLast: computed('lastPage', 'current', function () {
isLast: computed('current', 'currentPage', 'lastPage', function () {
let currentPage = parseInt(this.currentPage);
let lastPage = parseInt(this.lastPage);

Expand All @@ -119,7 +119,7 @@ export default Component.extend({
return hide || (autoHide && (!count || count <= 1));
}),

pages: computed('count', 'current', 'countOut', 'countIn', function () {
pages: computed('count', 'countIn', 'countOut', 'current', 'seperator', function () {
let seperator = this.seperator;
let current = this.current;
let count = this.count;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"build": "ember build --environment=production",
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel lint:*",
"lint:hbs": "ember-template-lint .",
"lint:js": "eslint ./*.js addon addon-test-support app config lib server test-support tests",
"lint:js": "eslint ./*.js addon app config tests",
"start": "ember serve",
"test": "npm-run-all lint:* test:*",
"test:ember": "ember test",
Expand Down

0 comments on commit 5cd8dda

Please sign in to comment.