From: Bastian Dehn Date: Mon, 6 Jun 2022 13:57:38 +0000 (+0200) Subject: add: bearbeiten von title X-Git-Tag: v1.0^2~38 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=42bb62c23a4a4ab55495e8ebffe48360f705961f;p=speisekarten-editor.git add: bearbeiten von title --- diff --git a/src/app/app.component.html b/src/app/app.component.html index d15fe62..4bff8ff 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -19,7 +19,13 @@ +
@@ -58,17 +64,23 @@

{{title.Title}}

+

{{subtitle.Subtitle}}

{{food.Food}}
{{food.sideDish}}
{{food.price}}
- -
diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 17ac977..bd5626c 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -63,6 +63,20 @@ export class AppComponent this.formTitleVisible = false; } + public saveTitle(): void + { + this.title = { Title: "", Subtitles: [] } + this.formTitleVisible = false; + this.edit = false; + } + + public editTitle(title: ITitle): void + { + this.formTitleVisible = true; + this.title = title; + this.edit = true; + } + public addSubtitle(): void { let lastTitle = this.getLastTitle()