Merge pull request #12452 from Budibase/pricing-prerelease
banner changes for new pricing, fix for onboarding to prevent flash o…
This commit is contained in:
commit
02c4a3153a
|
@ -260,12 +260,12 @@ export async function listAllObjects(bucketName: string, path: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate a presigned url with a default TTL of 1 hour
|
* Generate a presigned url with a default TTL of 36 hours
|
||||||
*/
|
*/
|
||||||
export function getPresignedUrl(
|
export function getPresignedUrl(
|
||||||
bucketName: string,
|
bucketName: string,
|
||||||
key: string,
|
key: string,
|
||||||
durationSeconds: number = 3600
|
durationSeconds: number = 129600
|
||||||
) {
|
) {
|
||||||
const objectStore = ObjectStore(bucketName, { presigning: true })
|
const objectStore = ObjectStore(bucketName, { presigning: true })
|
||||||
const params = {
|
const params = {
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
import PortalSideBar from "./_components/PortalSideBar.svelte"
|
import PortalSideBar from "./_components/PortalSideBar.svelte"
|
||||||
|
|
||||||
// Don't block loading if we've already hydrated state
|
// Don't block loading if we've already hydrated state
|
||||||
let loaded = $apps.length != null
|
let loaded = !!$apps?.length
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
|
banner,
|
||||||
Heading,
|
Heading,
|
||||||
Layout,
|
Layout,
|
||||||
Button,
|
Button,
|
||||||
|
@ -10,6 +11,7 @@
|
||||||
Notification,
|
Notification,
|
||||||
Body,
|
Body,
|
||||||
Search,
|
Search,
|
||||||
|
BANNER_TYPES,
|
||||||
} from "@budibase/bbui"
|
} from "@budibase/bbui"
|
||||||
import Spinner from "components/common/Spinner.svelte"
|
import Spinner from "components/common/Spinner.svelte"
|
||||||
import CreateAppModal from "components/start/CreateAppModal.svelte"
|
import CreateAppModal from "components/start/CreateAppModal.svelte"
|
||||||
|
@ -198,6 +200,20 @@
|
||||||
if (usersLimitLockAction) {
|
if (usersLimitLockAction) {
|
||||||
usersLimitLockAction()
|
usersLimitLockAction()
|
||||||
}
|
}
|
||||||
|
if (!$admin.isDev) {
|
||||||
|
await banner.show({
|
||||||
|
messages: [
|
||||||
|
{
|
||||||
|
message:
|
||||||
|
"We've updated our pricing - read the blog post to learn more.",
|
||||||
|
type: BANNER_TYPES.NEUTRAL,
|
||||||
|
extraButtonText: "Learn More",
|
||||||
|
extraButtonAction: () =>
|
||||||
|
window.open("https://budibase.com/pricing"),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
})
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
notifications.error("Error getting init info")
|
notifications.error("Error getting init info")
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 618613f3575b01f74940d9f58fdb53a9a5b2dc1a
|
Subproject commit 1037b032d49244678204704d1bca779a29e395eb
|
Loading…
Reference in New Issue