diff --git a/app/routes/adapter.$name/AdapterDetail.tsx b/app/routes/adapter.$name/AdapterDetail.tsx index e4e0c5d..c7466c2 100644 --- a/app/routes/adapter.$name/AdapterDetail.tsx +++ b/app/routes/adapter.$name/AdapterDetail.tsx @@ -12,6 +12,7 @@ import { DeleteAdapter } from './DeleteAdapter'; import { GeneralDetailView } from './GeneralDetailView'; import { BackButton } from '~/components/shared/BackButton'; import { DeleteModal } from '~/components/shared/DeleteModal'; +import ComponentSelector from './ComponentSelector'; export function AdapterDetail({ adapter }: { adapter: IAdapter }) { const { components } = useLoaderData<{ components: IComponent[] }>(); @@ -58,15 +59,13 @@ export function AdapterDetail({ adapter }: { adapter: IAdapter }) { allDetails={allDetails} /> - - - Komponenter - - - + { + const match = a.match(/cn=([^,]+)/); + return match ? match[1] : ''; + })} + /> = ({ items, selectedItems }) => { + const submit = useSubmit(); + + return ( + <> + + + + Komponenter tilknyttet ressurs + + + {/* { + submit( + { + clientName: name, + updateType: isChecked ? 'add' : 'remove', + actionType: 'UPDATE_CLIENT_IN_ASSET', + }, + { + method: 'POST', + action: 'update', + navigate: false, + } + ); + }} + /> */} + + + + ); +}; + +export default ComponentSelector; diff --git a/app/routes/komponenter._index/ComponentsTable.tsx b/app/routes/komponenter._index/ComponentsTable.tsx index 5943ede..04e5f8a 100644 --- a/app/routes/komponenter._index/ComponentsTable.tsx +++ b/app/routes/komponenter._index/ComponentsTable.tsx @@ -45,39 +45,33 @@ const ComponentsTable: React.FC = ({ {chunk.map((component, index) => ( - handleRowClick(component)}> - {/**/} - {/* /!**!/*/} - {/* {component.basePath}*/} - {/**/} + {}} - // hideLabel={true} - // position="right" - > - - {component.basePath} + onChange={() => {}}> + {''} - + handleRowClick(component)}> + + {component.basePath} + + handleRowClick(component)}> {component.common && ( Felles )} - + handleRowClick(component)}> {component.openData && ( Åpne Data )} - + handleRowClick(component)}>