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() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
this.sidebarOpen = window.outerWidth >= 1280;
|
this.sidebarOpen = window.innerWidth >= 1280;
|
||||||
window.addEventListener("resize", () => {
|
window.addEventListener("resize", () => {
|
||||||
this.sidebarOpen = window.outerWidth >= 1280;
|
this.sidebarOpen = window.innerWidth >= 1280;
|
||||||
});
|
});
|
||||||
window.addEventListener("ak-sidebar-toggle", () => {
|
window.addEventListener("ak-sidebar-toggle", () => {
|
||||||
this.sidebarOpen = !this.sidebarOpen;
|
this.sidebarOpen = !this.sidebarOpen;
|
||||||
|
|
|
@ -34,7 +34,7 @@ export class SystemTaskListPage extends TablePage<Task> {
|
||||||
pagination: {
|
pagination: {
|
||||||
count: tasks.length,
|
count: tasks.length,
|
||||||
totalPages: 1,
|
totalPages: 1,
|
||||||
startIndex: 0,
|
startIndex: 1,
|
||||||
endIndex: tasks.length,
|
endIndex: tasks.length,
|
||||||
current: page,
|
current: page,
|
||||||
},
|
},
|
||||||
|
|
Reference in New Issue