Don't show amendment CR-diff-view if no CRs exist
This commit is contained in:
parent
bc3b8be78d
commit
cadef6d42e
@ -1547,6 +1547,16 @@ export class MotionDetailComponent extends BaseViewComponent implements OnInit,
|
|||||||
* a change reco. The autoupdate has to come "after" this routine
|
* a change reco. The autoupdate has to come "after" this routine
|
||||||
*/
|
*/
|
||||||
return ChangeRecoMode.Original;
|
return ChangeRecoMode.Original;
|
||||||
|
} else if (
|
||||||
|
mode === ChangeRecoMode.Diff &&
|
||||||
|
!this.changeRecommendations?.length &&
|
||||||
|
this.motion?.isParagraphBasedAmendment()
|
||||||
|
) {
|
||||||
|
/**
|
||||||
|
* The Diff view for paragraph-based amendments is only relevant for change recommendations;
|
||||||
|
* the regular amendment changes are shown in the "original" view.
|
||||||
|
*/
|
||||||
|
return ChangeRecoMode.Original;
|
||||||
}
|
}
|
||||||
return mode;
|
return mode;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user