wirking on global error display
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
14
frontend/src/warn.svelte.js
Normal file
14
frontend/src/warn.svelte.js
Normal file
@@ -0,0 +1,14 @@
|
||||
export const messages = $state({error:null,warning:null});
|
||||
|
||||
export function error(msg){
|
||||
messages.error = msg;
|
||||
}
|
||||
|
||||
export function warn(msg){
|
||||
messages.warning = msg;
|
||||
}
|
||||
|
||||
export function yikes(){
|
||||
messages.error = null;
|
||||
messages.warn = null;
|
||||
}
|
||||
Reference in New Issue
Block a user