diff --git a/src/components/Composables/useToastComposable.js b/src/components/Composables/useToastComposable.js index 4e5ee4a291..d3e399812d 100644 --- a/src/components/Composables/useToastComposable.js +++ b/src/components/Composables/useToastComposable.js @@ -7,16 +7,14 @@ const useToastComposable = () => { const initToast = (title, body, statusPassed, timestamp, refreshAction) => { show?.({ props: () => ({ - // value: true, - interval: 60000, + //Success toast autoHideDelay - 10 seconds, Error/Info toast autohidedelay - 30 minutes + interval: statusPassed==="success" ? 10000 : 1800000, }), component: h(Toast, { title: title, body: body, statusPassed: statusPassed, pos: 'top-right', - // autoHideDelay: 10000, - // autoHide: false, timestamp: timestamp, refreshAction: refreshAction, }), diff --git a/src/components/Global/Toast.vue b/src/components/Global/Toast.vue index c89c2eca49..73a0c95338 100644 --- a/src/components/Global/Toast.vue +++ b/src/components/Global/Toast.vue @@ -33,7 +33,6 @@ const { title, body, statusPassed, timestamp, refreshAction } = defineProps({ body: String, // eslint-disable-next-line vue/require-default-prop statusPassed: String, - autoHide: Boolean, timestamp: Boolean, refreshAction: Boolean, });