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 StatusRenderer from "components/portal/overview/StatusRenderer.svelte"
|
||||||
import DateTimeRenderer from "components/common/renderers/DateTimeRenderer.svelte"
|
import DateTimeRenderer from "components/common/renderers/DateTimeRenderer.svelte"
|
||||||
import TestDisplay from "components/automation/AutomationBuilder/TestDisplay.svelte"
|
import TestDisplay from "components/automation/AutomationBuilder/TestDisplay.svelte"
|
||||||
|
import { goto } from "@roxi/routify"
|
||||||
|
|
||||||
export let history
|
export let history
|
||||||
|
export let appId
|
||||||
export let close
|
export let close
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -23,10 +25,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
<Icon name="JourneyVoyager" />
|
<Icon name="JourneyVoyager" />
|
||||||
<div>{history.name}</div>
|
<div>{history.automationName}</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<ActionButton icon="Edit" fullWidth={false}
|
<ActionButton
|
||||||
|
icon="Edit"
|
||||||
|
fullWidth={false}
|
||||||
|
on:click={() =>
|
||||||
|
$goto(`../../../app/${appId}/automate/${history.automationId}`)}
|
||||||
>Edit automation</ActionButton
|
>Edit automation</ActionButton
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
@ -55,7 +61,7 @@
|
||||||
.bottom {
|
.bottom {
|
||||||
margin-top: var(--spacing-m);
|
margin-top: var(--spacing-m);
|
||||||
border-top: var(--border-light);
|
border-top: var(--border-light);
|
||||||
padding-top: var(--spacing-xl);
|
padding-top: calc(var(--spacing-xl) * 2);
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
import { automationStore } from "builderStore"
|
import { automationStore } from "builderStore"
|
||||||
import { onMount } from "svelte"
|
import { onMount } from "svelte"
|
||||||
|
|
||||||
export let appId
|
export let app
|
||||||
|
|
||||||
let runHistory = []
|
let runHistory = []
|
||||||
let showPanel = false
|
let showPanel = false
|
||||||
|
@ -140,6 +140,7 @@
|
||||||
</Layout>
|
</Layout>
|
||||||
<div class="panel" class:panelShow={showPanel}>
|
<div class="panel" class:panelShow={showPanel}>
|
||||||
<HistoryDetailsPanel
|
<HistoryDetailsPanel
|
||||||
|
appId={app.devId}
|
||||||
bind:history={selectedHistory}
|
bind:history={selectedHistory}
|
||||||
close={() => {
|
close={() => {
|
||||||
showPanel = false
|
showPanel = false
|
||||||
|
|
|
@ -301,7 +301,7 @@
|
||||||
/>
|
/>
|
||||||
</Tab>
|
</Tab>
|
||||||
<Tab title="Automation History">
|
<Tab title="Automation History">
|
||||||
<HistoryTab appId={selectedApp?._id} />
|
<HistoryTab app={selectedApp} />
|
||||||
</Tab>
|
</Tab>
|
||||||
{#if false}
|
{#if false}
|
||||||
<Tab title="Backups">
|
<Tab title="Backups">
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import {
|
import {
|
||||||
AutomationLog,
|
|
||||||
AutomationLogPage,
|
AutomationLogPage,
|
||||||
AutomationResults,
|
AutomationResults,
|
||||||
AutomationStatus,
|
AutomationStatus,
|
||||||
|
@ -135,7 +134,7 @@ export async function storeLog(
|
||||||
automation: Automation,
|
automation: Automation,
|
||||||
results: AutomationResults
|
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) {
|
if (env.DISABLE_AUTOMATION_LOGS) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue