From 0e7ad3bb8bf1e237579ab7de26fc403bdb2a37a3 Mon Sep 17 00:00:00 2001 From: Konstantin Markov Date: Tue, 10 Oct 2023 11:23:01 +0300 Subject: [PATCH] Add comment --- .../authoring/directives/AuthoringContainerDirective.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/apps/authoring/authoring/directives/AuthoringContainerDirective.ts b/scripts/apps/authoring/authoring/directives/AuthoringContainerDirective.ts index 6d068d0baf..466f1f76fc 100644 --- a/scripts/apps/authoring/authoring/directives/AuthoringContainerDirective.ts +++ b/scripts/apps/authoring/authoring/directives/AuthoringContainerDirective.ts @@ -32,6 +32,8 @@ export function AuthoringContainerDirective(authoringWorkspace: AuthoringWorkspa scope: {}, require: 'sdAuthoringContainer', link: function(scope, elem, attrs, ctrl) { + // Needed for authoring Angular. In authoring react we have a generic + // event ('resource:updated') which listens to all item changes. scope.$on('author_approval:updated', (event) => { if (event.item_id == scope.item._id) { scope.item.extra.publish_sign_off = event.sign_off_new_data;