phase 4-6 - with buggy contetn calendar page
This commit is contained in:
@@ -298,7 +298,35 @@ const tableActionsConfigs: Record<string, TableActionsConfig> = {
|
||||
label: 'Publish to Site',
|
||||
icon: <ArrowRightIcon className="w-5 h-5" />,
|
||||
variant: 'success',
|
||||
shouldShow: (row: any) => !row.external_id, // Only show if not published
|
||||
shouldShow: (row: any) => !row.external_id && row.site_status !== 'scheduled' && row.site_status !== 'publishing', // Only show if not published and not scheduled
|
||||
},
|
||||
{
|
||||
key: 'schedule',
|
||||
label: 'Schedule',
|
||||
icon: <BoltIcon className="w-5 h-5" />,
|
||||
variant: 'primary',
|
||||
shouldShow: (row: any) => !row.external_id && row.site_status !== 'scheduled' && row.site_status !== 'publishing', // Only show if not published and not scheduled
|
||||
},
|
||||
{
|
||||
key: 'reschedule',
|
||||
label: 'Reschedule',
|
||||
icon: <BoltIcon className="w-5 h-5" />,
|
||||
variant: 'secondary',
|
||||
shouldShow: (row: any) => row.site_status === 'scheduled', // Only show for scheduled items
|
||||
},
|
||||
{
|
||||
key: 'unschedule',
|
||||
label: 'Unschedule',
|
||||
icon: <TrashBinIcon className="w-5 h-5" />,
|
||||
variant: 'danger',
|
||||
shouldShow: (row: any) => row.site_status === 'scheduled', // Only show for scheduled items
|
||||
},
|
||||
{
|
||||
key: 'view_error',
|
||||
label: 'View Error Details',
|
||||
icon: <CheckCircleIcon className="w-5 h-5 text-danger-500" />,
|
||||
variant: 'danger',
|
||||
shouldShow: (row: any) => row.site_status === 'failed', // Only show for failed items
|
||||
},
|
||||
{
|
||||
key: 'view_on_site',
|
||||
@@ -315,6 +343,18 @@ const tableActionsConfigs: Record<string, TableActionsConfig> = {
|
||||
icon: <ArrowRightIcon className="w-4 h-4" />,
|
||||
variant: 'success',
|
||||
},
|
||||
{
|
||||
key: 'bulk_schedule_manual',
|
||||
label: 'Schedule (Manual)',
|
||||
icon: <BoltIcon className="w-4 h-4" />,
|
||||
variant: 'primary',
|
||||
},
|
||||
{
|
||||
key: 'bulk_schedule_defaults',
|
||||
label: 'Schedule (Site Defaults)',
|
||||
icon: <BoltIcon className="w-4 h-4" />,
|
||||
variant: 'primary',
|
||||
},
|
||||
{
|
||||
key: 'export',
|
||||
label: 'Export Selected',
|
||||
|
||||
Reference in New Issue
Block a user