Skip to content

Commit

Permalink
only show pricing banner in prod and once
Browse files Browse the repository at this point in the history
  • Loading branch information
shogunpurple committed Nov 28, 2023
1 parent 5301c1e commit b357b6d
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions packages/builder/src/pages/builder/portal/apps/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -200,16 +200,20 @@
if (usersLimitLockAction) {
usersLimitLockAction()
}
banner.queue([
{
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/blog/updates/pricing-v3"),
},
])
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/blog/updates/pricing-v3"),
},
],
})
}
} catch (error) {
notifications.error("Error getting init info")
}
Expand Down

0 comments on commit b357b6d

Please sign in to comment.