Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Oct 31, 2023
1 parent 6ee85a5 commit 400ef62
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions client/planning-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<IArticle>) => onSpikeMultiple(superdesk, items),
onPublish: (item: IArticle) => onPublishArticle(superdesk, item),
onRewriteAfter: (item: IArticle) => onArticleRewriteAfter(superdesk, item),
onSendBefore: (items: Array<IArticle>, 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<IArticle>) => onSpikeMultiple(superdesk, items),
onPublish: (item: IArticle) => onPublishArticle(superdesk, item),
onRewriteAfter: (item: IArticle) => onArticleRewriteAfter(superdesk, item),
onSendBefore: (items: Array<IArticle>, 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);
},
};

Expand Down

0 comments on commit 400ef62

Please sign in to comment.