Skip to content

Commit

Permalink
Improve motion meta
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianjoel committed Aug 15, 2024
1 parent 86db014 commit e1fbe78
Show file tree
Hide file tree
Showing 7 changed files with 183 additions and 229 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Directive, inject, Input } from '@angular/core';
import { ChangeDetectorRef, Directive, inject, Input } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { filter, Subscription } from 'rxjs';
import { ChangeRecoMode, LineNumberingMode } from 'src/app/domain/models/motions/motions.constants';
Expand All @@ -21,6 +21,8 @@ import { MotionDetailViewService } from '../services/motion-detail-view.service'

@Directive()
export abstract class BaseMotionDetailChildComponent extends BaseMeetingComponent {
protected cd: ChangeDetectorRef = inject(ChangeDetectorRef);

@Input()
public set motion(motion: ViewMotion) {
const previousMotion = this._motion;
Expand All @@ -34,6 +36,7 @@ export abstract class BaseMotionDetailChildComponent extends BaseMeetingComponen
}

this.onAfterSetMotion(previousMotion, motion);
this.cd.markForCheck();
}

public get motion(): ViewMotion {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ChangeDetectorRef, Component, EventEmitter, Output } from '@angular/core';
import { Component, EventEmitter, Output } from '@angular/core';
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
import { ActivatedRoute } from '@angular/router';
import { TranslateService } from '@ngx-translate/core';
Expand Down Expand Up @@ -147,7 +147,6 @@ export class MotionContentComponent extends BaseMotionDetailChildComponent {
private fb: UntypedFormBuilder,
private dialog: MotionChangeRecommendationDialogService,
private route: ActivatedRoute,
private cd: ChangeDetectorRef,
private perms: MotionPermissionService,
private motionController: MotionControllerService,
public participantSortService: ParticipantListSortService
Expand Down
Loading

0 comments on commit e1fbe78

Please sign in to comment.