fix(webui): link automation history to the recorded chat
This commit is contained in:
1 parent
c932720b20
commit
5719ed6e16
6 files changed
+42
-11
No files matched your search
@@ -56,8 +56,9 @@ export function AutomationRunDialog({ token = "", job, run, locale, open, onOpen
|
||||
: run.status === "skipped" ? t("settings.automations.skipped")
|
||||
: t("settings.automations.calendar.recorded");
|
||||
const duration = run.duration_ms;
|
||||
const chatHref = job.origin?.channel === "websocket" && job.origin.session_key
|
||||
? `#/chat/${encodeURIComponent(job.origin.session_key)}` : null;
|
||||
const chatKey = run.webui_session_key !== undefined ? run.webui_session_key
|
||||
: job.origin?.channel === "websocket" ? job.origin.session_key : null;
|
||||
const chatHref = chatKey ? `#/chat/${encodeURIComponent(chatKey)}` : null;
|
||||
|
||||
return (
|
||||
<Dialog open={open} onOpenChange={onOpenChange}>
|
||||
|
||||
Reference in new issue
Block a user