web: fix system task index
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
cd78d8d3fa
commit
c8ed650f1c
|
@ -22,9 +22,9 @@ export abstract class Interface extends LitElement {
|
|||
|
||||
constructor() {
|
||||
super();
|
||||
this.sidebarOpen = window.outerWidth >= 1280;
|
||||
this.sidebarOpen = window.innerWidth >= 1280;
|
||||
window.addEventListener("resize", () => {
|
||||
this.sidebarOpen = window.outerWidth >= 1280;
|
||||
this.sidebarOpen = window.innerWidth >= 1280;
|
||||
});
|
||||
window.addEventListener("ak-sidebar-toggle", () => {
|
||||
this.sidebarOpen = !this.sidebarOpen;
|
||||
|
|
|
@ -34,7 +34,7 @@ export class SystemTaskListPage extends TablePage<Task> {
|
|||
pagination: {
|
||||
count: tasks.length,
|
||||
totalPages: 1,
|
||||
startIndex: 0,
|
||||
startIndex: 1,
|
||||
endIndex: tasks.length,
|
||||
current: page,
|
||||
},
|
||||
|
|
Reference in New Issue