From b357b6d2e8cea53e628faaa94b51a8b55a73e668 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Tue, 28 Nov 2023 08:59:34 +0000 Subject: [PATCH] only show pricing banner in prod and once --- .../pages/builder/portal/apps/index.svelte | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/apps/index.svelte b/packages/builder/src/pages/builder/portal/apps/index.svelte index fb0ba8bc2e..6a15d756cd 100644 --- a/packages/builder/src/pages/builder/portal/apps/index.svelte +++ b/packages/builder/src/pages/builder/portal/apps/index.svelte @@ -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") }