web: fix system task index

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-03-16 14:02:04 +01:00
parent cd78d8d3fa
commit c8ed650f1c
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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,
},