Add manual change detection in amendment list

Again a firefox issue.
Cycleing change detection crashed the browser
This commit is contained in:
Sean Engelhardt 2019-08-22 16:07:54 +02:00
parent b80ac3ac68
commit 04c51949be

View File

@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
import { MatDialog, MatSnackBar } from '@angular/material';
import { DomSanitizer, SafeHtml, Title } from '@angular/platform-browser';
import { ActivatedRoute } from '@angular/router';
@ -26,7 +26,8 @@ import { ViewMotion } from '../../models/view-motion';
@Component({
selector: 'os-amendment-list',
templateUrl: './amendment-list.component.html',
styleUrls: ['./amendment-list.component.scss']
styleUrls: ['./amendment-list.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class AmendmentListComponent extends BaseListViewComponent<ViewMotion> implements OnInit {
private parentMotionId: number;