From 0be35b99b015c11b41b5931ba2d31cb504ae4680 Mon Sep 17 00:00:00 2001 From: Andrew Marwood Date: Mon, 21 Aug 2023 15:09:03 +1000 Subject: [PATCH] [SDAAP-92] Dynamicaly update the body_footer in editor3 (#4308) * [SDAAP-92] Dynamicaly update the body_footer in editor3 * Add fireq.json --- .fireq.json | 3 +++ .../authoring/authoring/directives/ArticleEditDirective.ts | 1 + 2 files changed, 4 insertions(+) create mode 100644 .fireq.json diff --git a/.fireq.json b/.fireq.json new file mode 100644 index 0000000000..919f12322c --- /dev/null +++ b/.fireq.json @@ -0,0 +1,3 @@ +{ + "superdesk_branch": "release/2.5" +} \ No newline at end of file diff --git a/scripts/apps/authoring/authoring/directives/ArticleEditDirective.ts b/scripts/apps/authoring/authoring/directives/ArticleEditDirective.ts index 0798f30a7c..6f412687ec 100644 --- a/scripts/apps/authoring/authoring/directives/ArticleEditDirective.ts +++ b/scripts/apps/authoring/authoring/directives/ArticleEditDirective.ts @@ -422,6 +422,7 @@ export function ArticleEditDirective( scope.item.body_footer = scope.item.body_footer + scope.extra.body_footer_value.value; mainEditScope.dirty = true; autosave.save(scope.item, scope.origItem); + scope.refresh(); } // first option should always be selected, as multiple helplines could be added in footer