Skip to content

Commit

Permalink
Update sdapi usage
Browse files Browse the repository at this point in the history
  • Loading branch information
thecalcc committed Sep 19, 2024
1 parent 8800eb6 commit 1c14340
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions client/planning-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ const extension: IExtension = {
item.state !== 'correction' &&
extensionBridge.ui.utils.isContentLinkToCoverageAllowed(item) &&
(
superdesk.entities.article.itemAction(item).edit ||
superdesk.entities.article.itemAction(item).correct ||
superdesk.entities.article.itemAction(item).deschedule
superdesk.entities.article.itemActions(item).edit ||
superdesk.entities.article.itemActions(item).correct ||
superdesk.entities.article.itemActions(item).deschedule
)
) {
const customEvent = new CustomEvent('planning:addToPlanning', {detail: item});
Expand All @@ -159,9 +159,9 @@ const extension: IExtension = {
!superdeskArticle.isPersonal(item) &&
!superdeskArticle.isLockedInOtherSession(item) &&
(
superdeskArticle.itemAction(item).edit ||
superdeskArticle.itemAction(item).correct ||
superdeskArticle.itemAction(item).deschedule
superdeskArticle.itemActions(item).edit ||
superdeskArticle.itemActions(item).correct ||
superdeskArticle.itemActions(item).deschedule
)
) {
const event = new CustomEvent('planning:unlinkfromcoverage', {detail: {item}});
Expand Down

0 comments on commit 1c14340

Please sign in to comment.