web: start migrating: groups form

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-03-25 21:39:49 +01:00
parent 2fade4e604
commit 02212406c4
8 changed files with 141 additions and 19 deletions

View File

@ -4,10 +4,10 @@ import { ModalButton } from "../buttons/ModalButton";
import { Form } from "./Form";
@customElement("ak-forms-modal")
export class DeleteForm extends ModalButton {
export class ModalForm extends ModalButton {
confirm(): void {
this.querySelectorAll<Form>("ak-form").forEach(form => {
this.querySelectorAll<Form<unknown>>("ak-form").forEach(form => {
const formPromise = form.submit(new Event("submit"));
if (!formPromise) {
return;