From b524ef52d1db35f275cbcbe8e99e67762e5a85df Mon Sep 17 00:00:00 2001 From: jojohoch <joachim.hoch@iqb.hu-berlin.de> Date: Wed, 13 Dec 2023 11:33:50 +0100 Subject: [PATCH] Fix loading spinner animation of geogebra element --- projects/common/components/geometry/geometry.component.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/projects/common/components/geometry/geometry.component.ts b/projects/common/components/geometry/geometry.component.ts index 84b003d20..0c23101ee 100644 --- a/projects/common/components/geometry/geometry.component.ts +++ b/projects/common/components/geometry/geometry.component.ts @@ -1,9 +1,7 @@ import { AfterViewInit, Component, ElementRef, EventEmitter, Input, OnDestroy, Output, Renderer2 } from '@angular/core'; -import { - BehaviorSubject, debounceTime, Subject, Subscription -} from 'rxjs'; +import { debounceTime, Subject, Subscription } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; import { ElementComponent } from 'common/directives/element-component.directive'; import { GeometryElement } from 'common/models/elements/geometry/geometry'; @@ -42,7 +40,7 @@ export class GeometryComponent extends ElementComponent implements AfterViewInit @Input() appDefinition: string | undefined; @Output() elementValueChanged = new EventEmitter<ValueChangeElement>(); - isLoaded: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false); + isLoaded: Subject<boolean> = new Subject<boolean>(); geoGebraAPI!: any; private ngUnsubscribe = new Subject<void>(); -- GitLab