Adding edit automation button.
This commit is contained in:
parent
fd40073280
commit
5d82a39af3
|
@ -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%;
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -301,7 +301,7 @@
|
|||
/>
|
||||
</Tab>
|
||||
<Tab title="Automation History">
|
||||
<HistoryTab appId={selectedApp?._id} />
|
||||
<HistoryTab app={selectedApp} />
|
||||
</Tab>
|
||||
{#if false}
|
||||
<Tab title="Backups">
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue