diff --git a/frontend/language/src/nb.json b/frontend/language/src/nb.json index 2e2e538e6a5..ba5c09b7e92 100644 --- a/frontend/language/src/nb.json +++ b/frontend/language/src/nb.json @@ -657,6 +657,7 @@ "process_editor.not_found_process_error_message": "Det finnes ingen prosess definert innenfor BPMN, Du kan verifisere om prosessen finnes i BPMN-filen.", "process_editor.not_found_process_heading": "Ingen tilgjengelig prosess", "process_editor.save": "Lagre", + "process_editor.select_datamodel_label": "Datamodell", "process_editor.too_old_version_helptext_content": "Applikasjonen din har versjon {{ version }} av app-lib-pakken. \nVersjonen er for gammel for å kunne redigere denne modellen.\nDu kan se på prosessen og konfigurere oppsett tilknyttet prosessen, men vi anbefaler at du oppgraderer til versjon 8 eller nyere.", "process_editor.too_old_version_helptext_title": "Du kan ikke redigere prosessen", "process_editor.too_old_version_title": "Du kan ikke redigere denne prosessen", diff --git a/frontend/packages/process-editor/src/components/ConfigPanel/ConfigContent/ConfigContent.module.css b/frontend/packages/process-editor/src/components/ConfigPanel/ConfigContent/ConfigContent.module.css index c9098953650..c66d038c5f9 100644 --- a/frontend/packages/process-editor/src/components/ConfigPanel/ConfigContent/ConfigContent.module.css +++ b/frontend/packages/process-editor/src/components/ConfigPanel/ConfigContent/ConfigContent.module.css @@ -1,7 +1,7 @@ .headerWrapper { display: flex; align-items: center; - margin-inline: 1rem; + margin-inline: 0.75rem; margin-top: 1rem; justify-content: space-between; } diff --git a/frontend/packages/process-editor/src/components/ConfigPanel/ConfigContent/ConfigContent.tsx b/frontend/packages/process-editor/src/components/ConfigPanel/ConfigContent/ConfigContent.tsx index 95803712790..1a4a90bb06b 100644 --- a/frontend/packages/process-editor/src/components/ConfigPanel/ConfigContent/ConfigContent.tsx +++ b/frontend/packages/process-editor/src/components/ConfigPanel/ConfigContent/ConfigContent.tsx @@ -1,7 +1,7 @@ import React from 'react'; import classes from './ConfigContent.module.css'; import { useTranslation } from 'react-i18next'; -import { Divider, Heading, HelpText, Paragraph } from '@digdir/design-system-react'; +import { Divider, Heading, HelpText, Paragraph, Select } from '@digdir/design-system-react'; import { ConfigIcon } from './ConfigIcon'; import { ConfigDetailsRow } from './ConfigDetailsRow'; import { getConfigTitleKey, getConfigTitleHelpTextKey } from '../../../utils/configPanelUtils'; @@ -42,6 +42,25 @@ export const ConfigContent = (): JSX.Element => { text={bpmnDetails.name} /> + + {/* + IF Datamodel exists, show drop down with models + ELSE show LINK to Datamodel page + */} +