@@ -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'));
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user