fix: changed configs

This commit is contained in:
Pierre Tellier
2025-02-08 12:08:02 +01:00
parent dbf06d8c64
commit 3de90295bd
19 changed files with 218 additions and 368 deletions

View File

@ -0,0 +1,17 @@
import {ref} from "vue";
enum errorType {Error, Warning}
function addNewError(errorMessage: string, timeout?: number, type?: errorType){
if (timeout == null){
timeout = 5000;
}
if (type == null){
type = Error;
}
errorList.value.push({errorMessage: errorMessage, timeout: timeout, type: type})
setTimeout(() => errorList.value.pop(errorMessage), 5000)
}
const errorList = ref([])
export {addNewError, errorList}