How to show this message on successfull request? Do I need to create behavior subject or signal and set it to true?
<p-message i18n closable severity="success" [life]="10000"
>Your item is under our review, soon will be published.</p-message
>
readonly addItem$ = new Subject<CreateItemDto>();
addItem(item: CreateItemDto): Observable<CreatedItemDto> {
return this.#http
.post<OperationResultsOfCreatedItemDto>(
this.#commonApi.client.items.toPostRequestInformation({}).URL,
item
)
.pipe(map((q) => q?.data ?? {}));
}