From a3cb84c5c19f5c29b30d11d102810037131e23f0 Mon Sep 17 00:00:00 2001 From: Tomas Kikutis Date: Mon, 17 Jun 2024 10:09:28 +0200 Subject: [PATCH] use noPublishOnAuthoringDesk config in "publish from" dropdown (publish pane) (#4547) --- .../actions/publish-tab.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/core/interactive-article-actions-panel/actions/publish-tab.tsx b/scripts/core/interactive-article-actions-panel/actions/publish-tab.tsx index 252b96a8a1..495a12859d 100644 --- a/scripts/core/interactive-article-actions-panel/actions/publish-tab.tsx +++ b/scripts/core/interactive-article-actions-panel/actions/publish-tab.tsx @@ -196,6 +196,11 @@ export class WithPublishTab extends React.PureComponent { * choosing a stage would not have an impact */ hideStages={true} + + availableDesks={sdApi.desks.getAllDesks() + .filter((desk) => sdApi.article.canPublishOnDesk(desk.desk_type)) + .toOrderedMap() + } /> )