Skip to content

Commit

Permalink
WIP: Merge motion form
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianjoel committed Aug 19, 2024
1 parent cfd788b commit 1424705
Show file tree
Hide file tree
Showing 11 changed files with 517 additions and 1,074 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,18 @@ export class MotionDetailComponent extends BaseModelRequestHandlerComponent {
}

protected override onShouldCreateModelRequests(params: any, meetingId: Id): void {
if (params[`id`] && meetingId) {
this.loadMotionDetail(meetingId, +params[`id`]);
const id = params[`id`] || params[`parent`];
console.log(id, params);
if (id && meetingId) {
this.loadMotionDetail(meetingId, +id);
}
}

protected override onParamsChanged(params: any, oldParams: any): void {
if (params[`id`] !== oldParams[`id`] || params[`meetingId`] !== oldParams[`meetingId`]) {
this.loadMotionDetail(+params[`meetingId`], +params[`id`]);
const oldId = oldParams[`id`] || oldParams[`parent`];
const newId = params[`id`] || params[`parent`];
if (newId !== oldId || params[`meetingId`] !== oldParams[`meetingId`]) {
this.loadMotionDetail(+params[`meetingId`], +newId);
}
}

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1424705

Please sign in to comment.