mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-02 20:23:32 +08:00
15 lines
378 B
JavaScript
15 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$),
|
|
);
|
|
}
|