Add bulk update functionality for image status

- Introduced a new endpoint in the backend to handle bulk updates of image statuses by content ID or image IDs.
- Updated the frontend to include a new row action for updating image status and integrated a modal for status confirmation.
- Enhanced the API service to support bulk status updates and updated the images page to manage status updates effectively.
This commit is contained in:
IGNY8 VPS (Salman)
2025-11-12 01:37:41 +00:00
parent 645c6f3f9e
commit 9f20b8e065
6 changed files with 212 additions and 0 deletions

View File

@@ -309,6 +309,17 @@ const tableActionsConfigs: Record<string, TableActionsConfig> = {
},
],
},
'/writer/images': {
rowActions: [
{
key: 'update_status',
label: 'Update Status',
icon: <CheckCircleIcon className="w-5 h-5" />,
variant: 'primary',
},
],
bulkActions: [],
},
// Default config (fallback)
default: {
rowActions: [],