Fix modal displaying and add image to application entity.

This commit is contained in:
2021-08-02 09:35:36 +02:00
parent 30d336fed9
commit 555b9d4532
20 changed files with 275 additions and 20 deletions

View File

@@ -0,0 +1,21 @@
import { Injectable, Type } from "@angular/core";
import { BehaviorSubject, Observable } from "rxjs";
@Injectable({
providedIn: 'root'
})
export class ModalService {
_modalContent: BehaviorSubject<Type<unknown> | undefined> = new BehaviorSubject<Type<unknown> | undefined>(undefined);
open(componentClass: Type<unknown>): void {
this._modalContent.next(componentClass);
}
close(): void {
this._modalContent.next(undefined);
}
get modalContent(): Observable<Type<unknown> | undefined> {
return this._modalContent.asObservable();
}
}