mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-24 01:04:39 +01:00
16 lines
369 B
JavaScript
16 lines
369 B
JavaScript
import rxjs, { ajax } from "../../lib/rxjs/index.js";
|
|
|
|
class ConfigManager {
|
|
constructor() {
|
|
this.isSaving$ = new rxjs.BehaviorSubject(true)
|
|
setInterval(() => {
|
|
this.isSaving$.next(!this.isSaving$.value)
|
|
}, 5000);
|
|
}
|
|
|
|
isSaving() {
|
|
return this.isSaving$.asObservable();
|
|
}
|
|
}
|
|
|
|
export default new ConfigManager();
|