This commit is contained in:
alorig
2025-11-28 14:21:38 +05:00
parent e360c5fede
commit 8103c20341
2 changed files with 50 additions and 32 deletions

View File

@@ -327,10 +327,10 @@ const tableActionsConfigs: Record<string, TableActionsConfig> = {
icon: <ArrowRightIcon className="w-5 h-5" />,
variant: 'success',
shouldShow: (row: any) => {
// Only show if images are generated and not already published/publishing
return row.status === 'complete' &&
(!row.wordpress_status ||
(row.wordpress_status !== 'published' && row.wordpress_status !== 'publishing'));
// Only show if content is completed and not already published to WordPress
return row.status === 'published' &&
(!row.external_id || !row.external_url) &&
(!row.sync_status || row.sync_status !== 'published');
},
},
{