mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-02 14:07:04 +03:00
Pagenator should be Paginator
This commit is contained in:
parent
8bb05b41ce
commit
cb9e393fbc
7 changed files with 14 additions and 14 deletions
|
|
@ -12,7 +12,7 @@ import {
|
|||
|
||||
import {
|
||||
delegateRunOnDestroy,
|
||||
computedPagenatorHelper,
|
||||
computedPaginatorHelper,
|
||||
pInt
|
||||
} from 'Common/Utils';
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ class ContactsPopupView extends AbstractViewNext {
|
|||
return 0 >= iPage ? 1 : iPage;
|
||||
});
|
||||
|
||||
this.contactsPagenator = ko.computed(computedPagenatorHelper(this.contactsPage, this.contactsPageCount));
|
||||
this.contactsPaginator = ko.computed(computedPaginatorHelper(this.contactsPage, this.contactsPageCount));
|
||||
|
||||
this.emptySelection = ko.observable(true);
|
||||
this.viewClearSearch = ko.observable(false);
|
||||
|
|
@ -615,7 +615,7 @@ class ContactsPopupView extends AbstractViewNext {
|
|||
const self = this;
|
||||
|
||||
dom.addEventListener('click', event => {
|
||||
let el = event.target.closestWithin('.e-pagenator .e-page', dom);
|
||||
let el = event.target.closestWithin('.e-paginator .e-page', dom);
|
||||
if (el && ko.dataFor(el)) {
|
||||
self.contactsPage(pInt(ko.dataFor(el).value));
|
||||
self.reloadContactList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue