Skip to content

Commit

Permalink
lmb-rmw-tables: add necessary configs for the RMW IV
Browse files Browse the repository at this point in the history
  • Loading branch information
elpoelma committed Oct 24, 2024
1 parent f8b9b5d commit d6e5731
Show file tree
Hide file tree
Showing 4 changed files with 430 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .changeset/fair-boxes-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'frontend-gelinkt-notuleren': minor
---

**LMB IV RMW tables**
Add configs for the necessary LMB tables for the RMW IV
13 changes: 8 additions & 5 deletions app/components/inauguration-meeting/synchronization.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ import ENV from 'frontend-gelinkt-notuleren/config/environment';
import InaugurationMeetingSynchronizationToast from './synchronization-toast';
import { syncDocument } from '@lblod/ember-rdfa-editor-lblod-plugins/plugins/mandatee-table-plugin';
import SaySerializer from '@lblod/ember-rdfa-editor/core/say-serializer';
import { mandateeTableConfigIVGR } from '../../config/mandatee-table-config';
import {
mandateeTableConfigIVGR,
mandateeTableConfigRMW,
} from '../../config/mandatee-table-config';

export default class InaugurationMeetingSynchronizationComponent extends Component {
@service toaster;
Expand Down Expand Up @@ -194,10 +197,10 @@ export default class InaugurationMeetingSynchronizationComponent extends Compone
const currentVersion = await container.currentVersion;
const html = currentVersion.content ?? '';
const initialState = this.agendapointEditor.getState(html);
const syncedState = await syncDocument(
initialState,
mandateeTableConfigIVGR(this.meeting),
);
const syncedState = await syncDocument(initialState, {
...mandateeTableConfigIVGR(this.meeting),
...mandateeTableConfigRMW(this.meeting),
});
const serializer = SaySerializer.fromSchema(
syncedState.schema,
() => syncedState,
Expand Down
Loading

0 comments on commit d6e5731

Please sign in to comment.