diff --git a/src/frontend/components/routes/bulk-action.tsx b/src/frontend/components/routes/bulk-action.tsx index 0841a2dce..7b986cd35 100644 --- a/src/frontend/components/routes/bulk-action.tsx +++ b/src/frontend/components/routes/bulk-action.tsx @@ -17,6 +17,7 @@ import { } from '../app/index.js' import { useTranslation, useNotice, useResource } from '../../hooks/index.js' import allowOverride from '../../hoc/allow-override.js' +import { getDataCss } from '../../index.js' type MatchParams = Pick @@ -97,10 +98,13 @@ const BulkAction: React.FC = () => { return } + const routeWrapperCss = getDataCss(resource.id, action.actionType, action.name, 'route-wrapper') + const routeActionCss = getDataCss(resource.id, action.actionType, action.name, 'route') + if (action.showInDrawer) { if (!listAction) { return ( - + { return ( <> - + { setTag={setTag} /> - + { } return ( - + {!action?.showInDrawer ? : ''} { return } + const routeWrapperCss = getDataCss(resource.id, action.actionType, action.name, 'route-wrapper') + const routeActionCss = getDataCss(resource.id, action.actionType, action.name, 'route') + if (action.showInDrawer) { if (!listAction) { return ( - + ) @@ -131,10 +135,10 @@ const RecordAction: React.FC = () => { return ( <> - + - + { } return ( - + @@ -42,11 +42,12 @@ const ResourceAction: React.FC = (props) => { const listAction = resource.resourceActions.find((r) => r.name === listActionName) const contentTag = getResourceElementCss(resource.id, action.name) + const routeActionCss = getDataCss(resource.id, action.actionType, action.name, 'route') if (action.showInDrawer) { if (!listAction) { return ( - + ) @@ -58,14 +59,14 @@ const ResourceAction: React.FC = (props) => { return ( <> - + - +