mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-28 12:36:41 +07:00
loader: error handling
This commit is contained in:
parent
71a0aed9aa
commit
1c014ec9fb
5 changed files with 102 additions and 12 deletions
|
@ -26,3 +26,11 @@ export const parseQuery = (queryString: string) => {
|
|||
}
|
||||
return params;
|
||||
};
|
||||
|
||||
export const pushLoaderState = state => {
|
||||
document.getElementById('loader-bar').style.width = `${state}%`;
|
||||
};
|
||||
|
||||
export const pushNetworkInitError = state => {
|
||||
document.getElementById('loader-error').style.opacity = 1;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue