wirking on global error display

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-09-26 14:45:19 +02:00
parent 9c4c71f7dd
commit 2a6392cd2b
14 changed files with 113 additions and 116 deletions

View 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;
}