mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-18 22:04:05 +00:00
Frontend reorganisation
This commit is contained in:
14
frontend/src/lib/stores/inited.js
Normal file
14
frontend/src/lib/stores/inited.js
Normal file
@ -0,0 +1,14 @@
|
||||
import { derived } from 'svelte/store';
|
||||
import environment from './environment';
|
||||
import applicationSettings from './settings';
|
||||
|
||||
const applicationInited = derived([ environment, applicationSettings ], ([ env, settings ], set) => {
|
||||
if (env && settings) {
|
||||
set(true);
|
||||
|
||||
// Remove loading spinner.
|
||||
document.getElementById('app-loading')?.remove();
|
||||
}
|
||||
}, false);
|
||||
|
||||
export default applicationInited;
|
Reference in New Issue
Block a user