From: Bastian Dehn Date: Tue, 7 Jun 2022 16:03:53 +0000 (+0200) Subject: add: remove sub section button X-Git-Tag: v1.0^2~29 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=4780704b2d071c58b3e2f4d6cf429bf9ceec25d9;p=speisekarten-editor.git add: remove sub section button --- diff --git a/src/app/app.component.html b/src/app/app.component.html index d06f6db..a84c462 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -87,11 +87,14 @@ -
+

{{subtitle.Subtitle}}

+
{{food.Food}}
diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 674e106..ea1ba9a 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -118,6 +118,11 @@ export class AppComponent this.formSubtitleVisible = false; } + public removeSubSection(title: ITitle, index: number) + { + title.Subtitles.splice(index, 1); + } + public saveSubtitle(): void { this.subtitle = { Subtitle: "", Foods: [] };