Skip to content

Commit

Permalink
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 4eca6ab
Show file tree
Hide file tree
Showing 15 changed files with 688 additions and 1,083 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 4eca6ab

Please sign in to comment.