From f34cf1b79366c23499a56f60964eb570a2598453 Mon Sep 17 00:00:00 2001 From: Vincent Castel <62988268+Cast-El@users.noreply.github.com> Date: Wed, 9 Jul 2025 09:15:52 +0200 Subject: [PATCH 1/2] feat: Update topic-details.component.ts add keepContent boolean --- .../app/components/topic-details/topic-details.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webapp/src/app/components/topic-details/topic-details.component.ts b/webapp/src/app/components/topic-details/topic-details.component.ts index c404ec6..e6dd9a2 100644 --- a/webapp/src/app/components/topic-details/topic-details.component.ts +++ b/webapp/src/app/components/topic-details/topic-details.component.ts @@ -23,6 +23,7 @@ export class TopicDetailsComponent implements OnInit { _dialog = inject(MatDialog) public inputField = new UntypedFormControl('', Validators.required) + public keepContent = false; attributes: { [key: string]: string } = {} attributeCount = 0 constructor() { } @@ -45,7 +46,9 @@ export class TopicDetailsComponent implements OnInit { console.log("this value was found", this.inputField.value) this.onMessagePublish.emit({ topic: this.topic!, message: this.inputField.value, attributes: this.attributes }) - this.inputField.reset() + if (!this.keepContent) { + this.inputField.reset(); + } this.attributes = {} this.attributeCount = 0 } From b1c5f9e9b0c26e7daaa6679a1813ac62d8554b28 Mon Sep 17 00:00:00 2001 From: Vincent Castel <62988268+Cast-El@users.noreply.github.com> Date: Wed, 9 Jul 2025 09:16:14 +0200 Subject: [PATCH 2/2] feat: Update topic-details.component.html add checkbox keepcontent --- .../topic-details/topic-details.component.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/webapp/src/app/components/topic-details/topic-details.component.html b/webapp/src/app/components/topic-details/topic-details.component.html index 213adc6..1320cd7 100644 --- a/webapp/src/app/components/topic-details/topic-details.component.html +++ b/webapp/src/app/components/topic-details/topic-details.component.html @@ -3,6 +3,16 @@