We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bafec2 commit 5f17b74Copy full SHA for 5f17b74
components/Toast.vue
@@ -17,7 +17,7 @@
17
'-translate-y-0': !toastState.show,
18
'bg-green-400 text-gray-800': toastState.theme === 'success',
19
'bg-red-400 text-white': toastState.theme === 'error',
20
- 'bg-blue-400 text-white': toastState.theme !== 'success',
+ 'bg-blue-400 text-gray-800': toastState.theme === 'info',
21
}"
22
>
23
<div class="flex justify-between gap-2">
store/toast.js
@@ -20,7 +20,7 @@ export const mutations = {
}
const isAlreadyShowing = state.show;
state.content = content;
- state.theme = theme;
+ state.theme = theme || "info";
24
state.iconHTML = iconHTML
25
state.show = content && show;
26
if (isAlreadyShowing && state.show && timeoutId) {
0 commit comments