diff --git a/frontend/language/src/nb.json b/frontend/language/src/nb.json index cf32f81e67c..e836948c1f2 100644 --- a/frontend/language/src/nb.json +++ b/frontend/language/src/nb.json @@ -1373,11 +1373,14 @@ "ux_editor.component_properties.stickyHeader": "Fest tittelraden", "ux_editor.component_properties.style": "Stil", "ux_editor.component_properties.subdomains": "Subdomener (kommaseparert)", + "ux_editor.component_properties.subform.choose_data_model": "Velg datamodell...", "ux_editor.component_properties.subform.choose_layout_set": "Velg et underskjema...", "ux_editor.component_properties.subform.choose_layout_set_description": "Velg først underskjemaet du vil bruke i Tabell for underskjema. Deretter kan du sette opp egenskapene for komponenten.", "ux_editor.component_properties.subform.choose_layout_set_header": "Velg underskjemaet du vil bruke", "ux_editor.component_properties.subform.choose_layout_set_label": "Velg et underskjema", "ux_editor.component_properties.subform.create_layout_set_button": "Opprett et nytt underskjema", + "ux_editor.component_properties.subform.create_new_data_model": "Lag ny datamodell", + "ux_editor.component_properties.subform.create_new_data_model_label": "Navn på ny datamodell", "ux_editor.component_properties.subform.created_layout_set_name": "Navn på underskjema", "ux_editor.component_properties.subform.data_model_binding_label": "Velg datamodellknytning", "ux_editor.component_properties.subform.data_model_empty_messsage": "Ingen tilgjengelige datamodeller", diff --git a/frontend/packages/shared/src/types/AppsQueryKey.ts b/frontend/packages/shared/src/types/AppsQueryKey.ts index 8516df4f95e..6854da5864f 100644 --- a/frontend/packages/shared/src/types/AppsQueryKey.ts +++ b/frontend/packages/shared/src/types/AppsQueryKey.ts @@ -1,5 +1,6 @@ export enum AppsQueryKey { AppLayouts = 'formLayouts', + AppLayoutSets = 'fetchLayoutSets', AppLayoutSettings = 'layoutSettings', AppTextResources = 'fetchTextResources', } diff --git a/frontend/packages/ux-editor/src/AppContext.test.tsx b/frontend/packages/ux-editor/src/AppContext.test.tsx index 10f7fc5ffa9..bbe93415699 100644 --- a/frontend/packages/ux-editor/src/AppContext.test.tsx +++ b/frontend/packages/ux-editor/src/AppContext.test.tsx @@ -163,6 +163,21 @@ describe('AppContext', () => { ); }); + it('invalidates layout sets query for Apps in preview', async () => { + const { queryClient } = renderAppContext(({ updateLayoutSetsForPreview }: AppContextProps) => ( +