diff --git a/client/planning-extension/src/extension.ts b/client/planning-extension/src/extension.ts index 226b7354f..6bf4d80ed 100644 --- a/client/planning-extension/src/extension.ts +++ b/client/planning-extension/src/extension.ts @@ -108,30 +108,30 @@ const extension: IExtension = { const displayTopbarWidget = superdesk.privileges.hasPrivilege('planning_assignments_view') && extensionConfig?.assignmentsTopBarWidget === true; - const result: IExtensionActivationResult = { - contributions: { - entities: { - article: { - onSpike: (item: IArticle) => onSpike(superdesk, item), - onSpikeMultiple: (items: Array) => onSpikeMultiple(superdesk, items), - onPublish: (item: IArticle) => onPublishArticle(superdesk, item), - onRewriteAfter: (item: IArticle) => onArticleRewriteAfter(superdesk, item), - onSendBefore: (items: Array, desk: IDesk) => onSendBefore(superdesk, items, desk), - }, - ingest: { - ruleHandlers: { - planning_publish: { - editor: AutopostIngestRuleEditor, - preview: AutopostIngestRulePreview, - }, + const result: IExtensionActivationResult = { + contributions: { + entities: { + article: { + onSpike: (item: IArticle) => onSpike(superdesk, item), + onSpikeMultiple: (items: Array) => onSpikeMultiple(superdesk, items), + onPublish: (item: IArticle) => onPublishArticle(superdesk, item), + onRewriteAfter: (item: IArticle) => onArticleRewriteAfter(superdesk, item), + onSendBefore: (items: Array, desk: IDesk) => onSendBefore(superdesk, items, desk), + }, + ingest: { + ruleHandlers: { + planning_publish: { + editor: AutopostIngestRuleEditor, + preview: AutopostIngestRulePreview, }, }, }, - globalMenuHorizontal: displayTopbarWidget ? [AssignmentsList] : [], }, - }; + globalMenuHorizontal: displayTopbarWidget ? [AssignmentsList] : [], + }, + }; - return Promise.resolve(result); + return Promise.resolve(result); }, };