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