Skip to content

Commit

Permalink
toast has production issues...
Browse files Browse the repository at this point in the history
  • Loading branch information
RGBKnights committed Jan 8, 2025
1 parent 572d69a commit 6356991
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import './style.css'
import "vue3-toastify/dist/index.css";
//import "vue3-toastify/dist/index.css";

import { createApp } from 'vue'
import { createPinia } from 'pinia'
Expand Down
20 changes: 8 additions & 12 deletions src/stores/iterate.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
import { toast, ToastOptions } from "vue3-toastify";
//import { toast, ToastOptions } from "vue3-toastify";
import { defineStore } from 'pinia'

type State = 'Pending' | 'Running' | 'Completed' | 'Failed' | 'Terminated'

const URL_BASE = 'https://03600f7f7081.ngrok.app' //import.meta.env.VITE_API_URL
const API_CODE = import.meta.env.VITE_API_CODE

const TOAST_ERROR_CONFIG = {
"theme": "auto",
"type": "error",
"transition": "slide"
} as ToastOptions;

const TOAST_CONFIG = {
"theme": "auto",
"transition": "slide"
} as ToastOptions;
// const TOAST_ERROR_CONFIG = {
// "theme": "auto",
// "type": "error",
// "transition": "slide"
// } as ToastOptions;

export const useIterateStore = defineStore('iterate', {
state: () => {
Expand Down Expand Up @@ -145,7 +140,8 @@ export const useIterateStore = defineStore('iterate', {
message = 'Error: Something Unexpected.';
break;
}
toast(message, TOAST_ERROR_CONFIG)
console.error('Error:', message)
//toast(message, TOAST_ERROR_CONFIG)
});
},
stop() {
Expand Down

0 comments on commit 6356991

Please sign in to comment.