small fix plan-editor
This commit is contained in:
parent
88340e3580
commit
453cde406e
|
@ -210,6 +210,8 @@ export class PlanEditorComponent extends BaseEditor<PlanEditorModel, Plan> imple
|
||||||
super.ngOnInit();
|
super.ngOnInit();
|
||||||
if (this.isNew === false && this.step === 0) this.nextStep();
|
if (this.isNew === false && this.step === 0) this.nextStep();
|
||||||
|
|
||||||
|
|
||||||
|
if(this.item?.id){
|
||||||
this.formAnnotationService.init(this.item.id, AnnotationEntityType.Plan);
|
this.formAnnotationService.init(this.item.id, AnnotationEntityType.Plan);
|
||||||
this.formAnnotationService.getAnnotationCountObservable().pipe(takeUntil(this._destroyed)).subscribe((annotationsPerAnchor: Map<string, number>) => {
|
this.formAnnotationService.getAnnotationCountObservable().pipe(takeUntil(this._destroyed)).subscribe((annotationsPerAnchor: Map<string, number>) => {
|
||||||
this.annotationsPerAnchor = annotationsPerAnchor;
|
this.annotationsPerAnchor = annotationsPerAnchor;
|
||||||
|
@ -219,6 +221,7 @@ export class PlanEditorComponent extends BaseEditor<PlanEditorModel, Plan> imple
|
||||||
if (anchorId && anchorId == this.item.id?.toString()) this.showAnnotations(anchorId);
|
if (anchorId && anchorId == this.item.id?.toString()) this.showAnnotations(anchorId);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ngAfterViewInit(): void {
|
ngAfterViewInit(): void {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue