fix: hide pager when only first page (#335)
* fix: hide pager when only first page * fix: lints and formatting --------- Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
@@ -21,7 +21,7 @@ export const NotificationPager = (curPage: Variable<number>): BoxWidget => {
|
||||
showPager.bind('value'),
|
||||
],
|
||||
(currentPage: number, dispTotal: number, _: Notification[], showPgr: boolean) => {
|
||||
if (showPgr === false) {
|
||||
if (showPgr === false || (currentPage === 1 && notifs.notifications.length <= dispTotal)) {
|
||||
return [];
|
||||
}
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user