Removed unused variables, hid the automation/backups tabs and removed the disable flag from the app version settings menu

This commit is contained in:
Dean 2022-05-12 09:24:19 +01:00
parent 58ab5ffbdc
commit 5ec1d22237
3 changed files with 44 additions and 47 deletions

View File

@ -209,12 +209,14 @@
navigateTab={handleTabChange} navigateTab={handleTabChange}
/> />
</Tab> </Tab>
<Tab title="Automation History"> {#if false}
<div class="container">Automation History contents</div> <Tab title="Automation History">
</Tab> <div class="container">Automation History contents</div>
<Tab title="Backups"> </Tab>
<div class="container">Backups contents</div> <Tab title="Backups">
</Tab> <div class="container">Backups contents</div>
</Tab>
{/if}
<Tab title="Settings"> <Tab title="Settings">
<SettingsTab app={selectedApp} /> <SettingsTab app={selectedApp} />
</Tab> </Tab>

View File

@ -128,43 +128,45 @@
</div> </div>
</DashCard> </DashCard>
</div> </div>
<div class="bottom"> {#if false}
<DashCard <div class="bottom">
title={"Automation History"} <DashCard
action={() => { title={"Automation History"}
navigateTab("Automation History") action={() => {
}} navigateTab("Automation History")
dataCy={"automation-history"} }}
> dataCy={"automation-history"}
<div class="automation-content"> >
<div class="automation-metrics"> <div class="automation-content">
<div class="succeeded"> <div class="automation-metrics">
<Heading size="XL">0</Heading> <div class="succeeded">
<div class="metric-info"> <Heading size="XL">0</Heading>
<Icon name="CheckmarkCircle" /> <div class="metric-info">
Success <Icon name="CheckmarkCircle" />
Success
</div>
</div> </div>
</div> <div class="failed">
<div class="failed"> <Heading size="XL">0</Heading>
<Heading size="XL">0</Heading> <div class="metric-info">
<div class="metric-info"> <Icon name="Alert" />
<Icon name="Alert" /> Error
Error </div>
</div> </div>
</div> </div>
</div> </div>
</div> </DashCard>
</DashCard> <DashCard
<DashCard title={"Backups"}
title={"Backups"} action={() => {
action={() => { navigateTab("Backups")
navigateTab("Backups") }}
}} dataCy={"backups"}
dataCy={"backups"} >
> <div class="backups-content">test</div>
<div class="backups-content">test</div> </DashCard>
</DashCard> </div>
</div> {/if}
</div> </div>
<style> <style>

View File

@ -9,7 +9,6 @@
Modal, Modal,
} from "@budibase/bbui" } from "@budibase/bbui"
import { store } from "builderStore" import { store } from "builderStore"
import { auth } from "stores/portal"
import clientPackage from "@budibase/client/package.json" import clientPackage from "@budibase/client/package.json"
import VersionModal from "components/deploy/VersionModal.svelte" import VersionModal from "components/deploy/VersionModal.svelte"
import UpdateAppModal from "components/start/UpdateAppModal.svelte" import UpdateAppModal from "components/start/UpdateAppModal.svelte"
@ -24,8 +23,6 @@
$: updateAvailable = clientPackage.version !== $store.version $: updateAvailable = clientPackage.version !== $store.version
$: appUrl = `${window.origin}/app${app?.url}` $: appUrl = `${window.origin}/app${app?.url}`
$: lockedBy = app?.lockedBy
$: lockedByYou = $auth.user.email === lockedBy?.email
$: appDeployed = app.status === AppStatus.DEPLOYED $: appDeployed = app.status === AppStatus.DEPLOYED
</script> </script>
@ -84,11 +81,7 @@
fixes. fixes.
</p> </p>
<div class="page-action"> <div class="page-action">
<Button <Button cta on:click={versionModal.show()}>Update App</Button>
cta
on:click={versionModal.show()}
disabled={!updateAvailable}>Update App</Button
>
</div> </div>
</Body> </Body>
</Layout> </Layout>