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:
@@ -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: [],
|
||||
|
||||
Reference in New Issue
Block a user