only show pricing banner in prod and once

This commit is contained in:
Martin McKeaveney 2023-11-28 08:59:34 +00:00
parent 5301c1edd9
commit b357b6d2e8
1 changed files with 14 additions and 10 deletions

View File

@ -200,16 +200,20 @@
if (usersLimitLockAction) { if (usersLimitLockAction) {
usersLimitLockAction() usersLimitLockAction()
} }
banner.queue([ if (!$admin.isDev) {
{ await banner.show({
message: messages: [
"We've updated our pricing - read the blog post to learn more.", {
type: BANNER_TYPES.NEUTRAL, message:
extraButtonText: "Learn More", "We've updated our pricing - read the blog post to learn more.",
extraButtonAction: () => type: BANNER_TYPES.NEUTRAL,
window.open("https://budibase.com/blog/updates/pricing-v3"), extraButtonText: "Learn More",
}, extraButtonAction: () =>
]) window.open("https://budibase.com/blog/updates/pricing-v3"),
},
],
})
}
} catch (error) { } catch (error) {
notifications.error("Error getting init info") notifications.error("Error getting init info")
} }