Revert "12"

This reverts commit 636b7ddca9.
This commit is contained in:
alorig
2025-11-28 13:33:27 +05:00
parent 3fcba76d0b
commit e360c5fede
6 changed files with 512 additions and 36 deletions

View File

@@ -327,8 +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 (complete) - WordPress status is tracked separately
return row.overall_status === 'complete';
// 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'));
},
},
{