From 9b02286a96ac487d88c1be9668916e09917e0e86 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 23 Sep 2022 12:13:15 +0100 Subject: [PATCH] Rename some usages of feature flags to tenant feature flags --- .../src/components/portal/licensing/LicensingOverlays.svelte | 4 ++-- packages/builder/src/stores/portal/licensing.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/builder/src/components/portal/licensing/LicensingOverlays.svelte b/packages/builder/src/components/portal/licensing/LicensingOverlays.svelte index 736aac862f..0bd02fb68e 100644 --- a/packages/builder/src/components/portal/licensing/LicensingOverlays.svelte +++ b/packages/builder/src/components/portal/licensing/LicensingOverlays.svelte @@ -8,7 +8,7 @@ import { ExpiringKeys } from "./constants" import { getBanners } from "./licensingBanners" import { banner } from "@budibase/bbui" - import { FEATURE_FLAGS, isEnabled } from "../../../helpers/featureFlags" + import { TENANT_FEATURE_FLAGS, isEnabled } from "helpers/featureFlags" const oneDayInSeconds = 86400 @@ -86,7 +86,7 @@ userLoaded && licensingLoaded && loaded && - isEnabled(FEATURE_FLAGS.LICENSING) + isEnabled(TENANT_FEATURE_FLAGS.LICENSING) ) { queuedModals = processModals() queuedBanners = getBanners() diff --git a/packages/builder/src/stores/portal/licensing.js b/packages/builder/src/stores/portal/licensing.js index e2b4570302..d85a4850b4 100644 --- a/packages/builder/src/stores/portal/licensing.js +++ b/packages/builder/src/stores/portal/licensing.js @@ -3,7 +3,7 @@ import { API } from "api" import { auth } from "stores/portal" import { Constants } from "@budibase/frontend-core" import { StripeStatus } from "components/portal/licensing/constants" -import { FEATURE_FLAGS, isEnabled } from "../../helpers/featureFlags" +import { TENANT_FEATURE_FLAGS, isEnabled } from "../../helpers/featureFlags" export const createLicensingStore = () => { const DEFAULT = { @@ -29,7 +29,7 @@ export const createLicensingStore = () => { }) }, getUsageMetrics: async () => { - if (isEnabled(FEATURE_FLAGS.LICENSING)) { + if (isEnabled(TENANT_FEATURE_FLAGS.LICENSING)) { const quota = get(store).quotaUsage const license = get(auth).user.license const now = new Date()