From 4a7b119112d7f48772425c0293a5bfb13409d94d Mon Sep 17 00:00:00 2001 From: Vedangi Mittal Date: Wed, 26 Mar 2025 12:39:03 +0530 Subject: [PATCH] Updated auto hide delay for success toast - The auto-hide delay for the success toast has been updated to 10 seconds, while the delay for other toasts is set to 30 minutes. - Defect- https://jazz07.rchland.ibm.com:13443/jazz/web/projects/CSSD#action=com.ibm.team.workitem.viewWorkItem&id=670062 Signed-off-by: Vedangi Mittal --- src/components/Composables/useToastComposable.js | 6 ++---- src/components/Global/Toast.vue | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) 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, });