openmediavault 5.5.23
- Update locales.
- Issue #505: Prepend explanation to cron-apt notifications.
- Issue #926: Refactor code that is responsible for sending the notification email on first UI log in.
openmediavault 5.5.23
openmediavault 5.5.22
If you needed to poll a service and then take the response only when a specific property of the response was equal to a predicate, then the following RxJS operator might help you.
function takeWhen<T>(predicate: (value: T, index: number) => boolean) {
return (source: Observable<T>): Observable<T> => source.pipe(filter(predicate), take(1));
}
Example:
interval(500).pipe(
concatMap(() => this.http.post(...)),
takeWhen((res: IRpcBgResponse) => {
return res.running === false;
})
);