From e3da91985da0a4a117f1b8437802aa02b15f1761 Mon Sep 17 00:00:00 2001 From: Stephan Hug Date: Fri, 6 Oct 2023 14:14:44 +0200 Subject: [PATCH] feat: pass inquiry to form (useful for different widget overrides) --- .../distribution/addon/components/cd-inquiry-answer-form.hbs | 1 + packages/distribution/addon/components/cd-inquiry-edit-form.hbs | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/distribution/addon/components/cd-inquiry-answer-form.hbs b/packages/distribution/addon/components/cd-inquiry-answer-form.hbs index 828c487cf..a379f8907 100644 --- a/packages/distribution/addon/components/cd-inquiry-answer-form.hbs +++ b/packages/distribution/addon/components/cd-inquiry-answer-form.hbs @@ -2,6 +2,7 @@ @documentId={{decode-id this.inquiry.childCase.document.id}} @disabled={{cannot "edit answer form of inquiry" this.inquiry}} @loading={{this._inquiry.isRunning}} + @context={{hash inquiry=this.inquiry}} > <:default as |content|> diff --git a/packages/distribution/addon/components/cd-inquiry-edit-form.hbs b/packages/distribution/addon/components/cd-inquiry-edit-form.hbs index bbeb981ea..c988983d7 100644 --- a/packages/distribution/addon/components/cd-inquiry-edit-form.hbs +++ b/packages/distribution/addon/components/cd-inquiry-edit-form.hbs @@ -2,6 +2,7 @@ @documentId={{decode-id this.inquiry.document.id}} @disabled={{cannot "edit inquiry" this.inquiry}} @loading={{this._inquiry.isRunning}} + @context={{hash inquiry=this.inquiry}} > <:default as |content|>