always show automation history tab

This commit is contained in:
Peter Clement 2022-10-24 15:38:03 +01:00
parent 1aca8756f6
commit 2ffae3a0d6
2 changed files with 6 additions and 9 deletions

View File

@ -36,7 +36,6 @@
let endDate = null let endDate = null
let filters = getFilters() let filters = getFilters()
$: console.log(backupData)
$: page = $pageInfo.page $: page = $pageInfo.page
$: fetchBackups(filterOpt, page, startDate, endDate) $: fetchBackups(filterOpt, page, startDate, endDate)
@ -193,7 +192,7 @@
</div> </div>
</Layout> </Layout>
</Page> </Page>
{:else if backupData} {:else if backupData?.length > 0}
<Layout noPadding gap="M" alignContent="start"> <Layout noPadding gap="M" alignContent="start">
<div class="search"> <div class="search">
<div class="select"> <div class="select">
@ -248,7 +247,7 @@
</div> </div>
</div> </div>
</Layout> </Layout>
{:else if !backupData} {:else if backupData?.length === 0}
<Page wide={false}> <Page wide={false}>
<div class="align"> <div class="align">
<img <img
@ -263,7 +262,7 @@
<Body size="S">You can manually backup your app any time</Body> <Body size="S">You can manually backup your app any time</Body>
</div> </div>
<div class="padding"> <div class="padding">
<Button cta>Create Backup</Button> <Button on:click={modal.show} cta>Create Backup</Button>
</div> </div>
</Layout> </Layout>
</div> </div>

View File

@ -319,11 +319,9 @@
<Tab title="Access"> <Tab title="Access">
<AccessTab app={selectedApp} /> <AccessTab app={selectedApp} />
</Tab> </Tab>
{#if isPublished} <Tab title="Automation History">
<Tab title="Automation History"> <HistoryTab app={selectedApp} />
<HistoryTab app={selectedApp} /> </Tab>
</Tab>
{/if}
<Tab title="Backups"> <Tab title="Backups">
<BackupsTab app={selectedApp} /> <BackupsTab app={selectedApp} />
</Tab> </Tab>