Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion packages/editor/src/components/sidebar/dataform-post-summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { useViewConfig } from '@wordpress/views';
* Internal dependencies
*/
import PostCardPanel from '../post-card-panel';
import PluginPostStatusInfo from '../plugin-post-status-info';
import PostPanelSection from '../post-panel-section';
import { store as editorStore } from '../../store';
import PostTrash from '../post-trash';
Expand Down Expand Up @@ -394,7 +395,18 @@ export default function DataFormPostSummary( { onActionPerformed } ) {
onChange={ onChange }
/>
{ ! isPostStatusRemoved && (
<PostTrash onActionPerformed={ onActionPerformed } />
<>
<PluginPostStatusInfo.Slot>
{ ( fills ) =>
fills.length > 0 && (
<Stack direction="column" gap="xs">
{ fills }
</Stack>
)
}
</PluginPostStatusInfo.Slot>
<PostTrash onActionPerformed={ onActionPerformed } />
</>
) }
</Stack>
</PostPanelSection>
Expand Down
Loading