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

View File

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