mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-19 23:05:04 +01:00
13 lines
366 B
JavaScript
13 lines
366 B
JavaScript
import rxjs from "../../lib/rx.js";
|
|
|
|
import { getBackends as _getBackends } from "../../model/backend.js";
|
|
import { isSaving } from "./model_config.js";
|
|
|
|
const backend$ = _getBackends().pipe(rxjs.shareReplay(1));
|
|
|
|
export function getBackends() {
|
|
return isSaving().pipe(
|
|
rxjs.filter((loading) => !loading),
|
|
rxjs.mergeMap(() => backend$),
|
|
);
|
|
}
|