Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/components/Composables/useToastComposable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
Expand Down
1 change: 0 additions & 1 deletion src/components/Global/Toast.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down