hide banner from new UI
This commit is contained in:
parent
b484c1c737
commit
187e138b8f
|
@ -1,6 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { createEventDispatcher } from "svelte"
|
import { createEventDispatcher } from "svelte"
|
||||||
import Button from "../Button/Button.svelte"
|
|
||||||
|
|
||||||
let dispatch = createEventDispatcher()
|
let dispatch = createEventDispatcher()
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
Body,
|
Body,
|
||||||
Button,
|
Button,
|
||||||
ButtonGroup,
|
ButtonGroup,
|
||||||
Divider,
|
|
||||||
Layout,
|
Layout,
|
||||||
Heading,
|
Heading,
|
||||||
Page,
|
Page,
|
||||||
|
|
|
@ -1,14 +1,13 @@
|
||||||
<script>
|
<script>
|
||||||
import { store, automationStore } from "builderStore"
|
import { store, automationStore } from "builderStore"
|
||||||
import { roles, flags } from "stores/backend"
|
import { roles, flags } from "stores/backend"
|
||||||
import { auth } from "stores/portal"
|
|
||||||
import {
|
import {
|
||||||
Icon,
|
Icon,
|
||||||
Tabs,
|
Tabs,
|
||||||
Tab,
|
Tab,
|
||||||
Heading,
|
Heading,
|
||||||
notifications,
|
notifications,
|
||||||
Banner,
|
// Banner,
|
||||||
} from "@budibase/bbui"
|
} from "@budibase/bbui"
|
||||||
import RevertModal from "components/deploy/RevertModal.svelte"
|
import RevertModal from "components/deploy/RevertModal.svelte"
|
||||||
import DeployNavigation from "components/deploy/DeployNavigation.svelte"
|
import DeployNavigation from "components/deploy/DeployNavigation.svelte"
|
||||||
|
@ -21,7 +20,7 @@
|
||||||
|
|
||||||
// Get Package and set store
|
// Get Package and set store
|
||||||
let promise = getPackage()
|
let promise = getPackage()
|
||||||
let betaAccess = false
|
// let betaAccess = false
|
||||||
|
|
||||||
// Sync once when you load the app
|
// Sync once when you load the app
|
||||||
let hasSynced = false
|
let hasSynced = false
|
||||||
|
@ -65,23 +64,13 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
async function newDesignUi() {
|
|
||||||
try {
|
|
||||||
await flags.toggleUiFeature("design_ui")
|
|
||||||
window.location.reload()
|
|
||||||
} catch (error) {
|
|
||||||
notifications.error("Error enabling beta access to new design UI")
|
|
||||||
console.error(error)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
if (!hasSynced && application) {
|
if (!hasSynced && application) {
|
||||||
try {
|
try {
|
||||||
await API.syncApp(application)
|
await API.syncApp(application)
|
||||||
// check if user has beta access
|
// check if user has beta access
|
||||||
const betaResponse = await API.checkBetaAccess($auth?.user?.email)
|
// const betaResponse = await API.checkBetaAccess($auth?.user?.email)
|
||||||
betaAccess = betaResponse.access
|
// betaAccess = betaResponse.access
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
notifications.error("Failed to sync with production database")
|
notifications.error("Failed to sync with production database")
|
||||||
}
|
}
|
||||||
|
@ -102,7 +91,7 @@
|
||||||
<div class="loading" />
|
<div class="loading" />
|
||||||
{:then _}
|
{:then _}
|
||||||
<div class="root">
|
<div class="root">
|
||||||
{#if betaAccess}
|
<!-- {#if betaAccess}
|
||||||
<Banner
|
<Banner
|
||||||
extraButtonText="Try New UI (Beta)"
|
extraButtonText="Try New UI (Beta)"
|
||||||
extraButtonAction={newDesignUi}
|
extraButtonAction={newDesignUi}
|
||||||
|
@ -110,7 +99,7 @@
|
||||||
Try the <b>all new</b> budibase design interface. (Not recommended for existing
|
Try the <b>all new</b> budibase design interface. (Not recommended for existing
|
||||||
budibase apps)
|
budibase apps)
|
||||||
</Banner>
|
</Banner>
|
||||||
{/if}
|
{/if} -->
|
||||||
<div class="top-nav">
|
<div class="top-nav">
|
||||||
<div class="topleftnav">
|
<div class="topleftnav">
|
||||||
<Icon
|
<Icon
|
||||||
|
|
Loading…
Reference in New Issue