- {#each $notifications as { type, icon, message, id, dismissable } (id)}
+ {#each $notifications as { type, icon, message, id, dismissable, action, wide } (id)}
notifications.dismiss(id)}
/>
diff --git a/packages/bbui/src/Stores/notifications.js b/packages/bbui/src/Stores/notifications.js
index 74eed8628a..449d282f24 100644
--- a/packages/bbui/src/Stores/notifications.js
+++ b/packages/bbui/src/Stores/notifications.js
@@ -20,7 +20,16 @@ export const createNotificationStore = () => {
setTimeout(() => (block = false), timeout)
}
- const send = (message, type = "default", icon = "", autoDismiss = true) => {
+ const send = (
+ message,
+ {
+ type = "default",
+ icon = "",
+ autoDismiss = true,
+ action = null,
+ wide = false,
+ }
+ ) => {
if (block) {
return
}
@@ -28,7 +37,15 @@ export const createNotificationStore = () => {
_notifications.update(state => {
return [
...state,
- { id: _id, type, message, icon, dismissable: !autoDismiss },
+ {
+ id: _id,
+ type,
+ message,
+ icon,
+ dismissable: !autoDismiss,
+ action,
+ wide,
+ },
]
})
if (autoDismiss) {
@@ -50,10 +67,11 @@ export const createNotificationStore = () => {
return {
subscribe,
send,
- info: msg => send(msg, "info", "Info"),
- error: msg => send(msg, "error", "Alert", false),
- warning: msg => send(msg, "warning", "Alert"),
- success: msg => send(msg, "success", "CheckmarkCircle"),
+ info: msg => send(msg, { type: "info", icon: "Info" }),
+ error: msg =>
+ send(msg, { type: "error", icon: "Alert", autoDismiss: false }),
+ warning: msg => send(msg, { type: "warning", icon: "Alert" }),
+ success: msg => send(msg, { type: "success", icon: "CheckmarkCircle" }),
blockNotifications,
dismiss: dismissNotification,
}
diff --git a/packages/builder/src/builderStore/store/automation/index.js b/packages/builder/src/builderStore/store/automation/index.js
index af47b6ec38..f7db448693 100644
--- a/packages/builder/src/builderStore/store/automation/index.js
+++ b/packages/builder/src/builderStore/store/automation/index.js
@@ -129,6 +129,7 @@ const automationActions = store => ({
page,
})
},
+ clearLogErrors: async () => {},
addTestDataToAutomation: data => {
store.update(state => {
state.selectedAutomation.addTestData(data)
diff --git a/packages/builder/src/components/portal/overview/HistoryDetailsPanel.svelte b/packages/builder/src/components/portal/overview/HistoryDetailsPanel.svelte
index cb384c8007..f540d587eb 100644
--- a/packages/builder/src/components/portal/overview/HistoryDetailsPanel.svelte
+++ b/packages/builder/src/components/portal/overview/HistoryDetailsPanel.svelte
@@ -4,10 +4,15 @@
import DateTimeRenderer from "components/common/renderers/DateTimeRenderer.svelte"
import TestDisplay from "components/automation/AutomationBuilder/TestDisplay.svelte"
import { goto } from "@roxi/routify"
+ import { automationStore } from "builderStore"
export let history
export let appId
export let close
+
+ $: exists = $automationStore.automations?.find(
+ auto => auto._id === history?.automationId
+ )
{#if history}
@@ -28,13 +33,15 @@
{history.automationName}
diff --git a/packages/builder/src/components/portal/overview/HistoryTab.svelte b/packages/builder/src/components/portal/overview/HistoryTab.svelte
index a2b9879d54..a52b236697 100644
--- a/packages/builder/src/components/portal/overview/HistoryTab.svelte
+++ b/packages/builder/src/components/portal/overview/HistoryTab.svelte
@@ -126,7 +126,7 @@
/>