Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc authored Oct 10, 2023
1 parent 71c14d6 commit 0e7ad3b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0e7ad3b

Please sign in to comment.