mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-18 06:49:50 +02:00
JWT auth plugin and necessary updates
This commit is contained in:
@@ -34,3 +34,12 @@ export function hideToast(id: string) {
|
||||
return all.filter((t) => t.id !== id);
|
||||
});
|
||||
}
|
||||
|
||||
export function showErrorToast<T>(id: string, message: T) {
|
||||
return showToast({
|
||||
id,
|
||||
message: String(message),
|
||||
timeout: 8000,
|
||||
color: 'danger',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user