Adding edit automation button.

This commit is contained in:
mike12345567 2022-06-17 17:00:43 +01:00
parent fd40073280
commit 5d82a39af3
4 changed files with 13 additions and 7 deletions

View File

@ -3,8 +3,10 @@
import StatusRenderer from "components/portal/overview/StatusRenderer.svelte"
import DateTimeRenderer from "components/common/renderers/DateTimeRenderer.svelte"
import TestDisplay from "components/automation/AutomationBuilder/TestDisplay.svelte"
import { goto } from "@roxi/routify"
export let history
export let appId
export let close
</script>
@ -23,10 +25,14 @@
</div>
<div class="icon">
<Icon name="JourneyVoyager" />
<div>{history.name}</div>
<div>{history.automationName}</div>
</div>
<div>
<ActionButton icon="Edit" fullWidth={false}
<ActionButton
icon="Edit"
fullWidth={false}
on:click={() =>
$goto(`../../../app/${appId}/automate/${history.automationId}`)}
>Edit automation</ActionButton
>
</div>
@ -55,7 +61,7 @@
.bottom {
margin-top: var(--spacing-m);
border-top: var(--border-light);
padding-top: var(--spacing-xl);
padding-top: calc(var(--spacing-xl) * 2);
height: 100%;
}

View File

@ -6,7 +6,7 @@
import { automationStore } from "builderStore"
import { onMount } from "svelte"
export let appId
export let app
let runHistory = []
let showPanel = false
@ -140,6 +140,7 @@
</Layout>
<div class="panel" class:panelShow={showPanel}>
<HistoryDetailsPanel
appId={app.devId}
bind:history={selectedHistory}
close={() => {
showPanel = false

View File

@ -301,7 +301,7 @@
/>
</Tab>
<Tab title="Automation History">
<HistoryTab appId={selectedApp?._id} />
<HistoryTab app={selectedApp} />
</Tab>
{#if false}
<Tab title="Backups">

View File

@ -1,5 +1,4 @@
import {
AutomationLog,
AutomationLogPage,
AutomationResults,
AutomationStatus,
@ -135,7 +134,7 @@ export async function storeLog(
automation: Automation,
results: AutomationResults
) {
// can disable this if un-needed in self host
// can disable this if un-needed in self-host
if (env.DISABLE_AUTOMATION_LOGS) {
return
}