fix: various menu fixes

This commit is contained in:
2025-04-23 11:08:05 +02:00
parent 2018d35f57
commit e2ef6767f8
4 changed files with 11 additions and 3 deletions

View File

@@ -124,4 +124,8 @@ export class MenuNewComponent {
getStat(day: moment.Moment, m: "ob" | "kol") {
this.ac.menu.stat(day, m).subscribe((s) => this.sb.open(`${s.y} / ${s.y+s.n} = ${((s.y/(s.y+s.n))*100).toFixed(2)}%`, "Zamknij", {duration: 2500}))
}
remove(id: string) {
this.ac.menu.rm(id).subscribe(this.refreshIfGood)
}
}