From bd2f297cedd487035df925322e854aa8e93d8538 Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Mon, 23 May 2022 08:55:33 +0100 Subject: [PATCH] Add opt-in / opt-out to org settings --- .../builder/portal/settings/organisation.svelte | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/packages/builder/src/pages/builder/portal/settings/organisation.svelte b/packages/builder/src/pages/builder/portal/settings/organisation.svelte index 7094a0af01..c13b1dc1eb 100644 --- a/packages/builder/src/pages/builder/portal/settings/organisation.svelte +++ b/packages/builder/src/pages/builder/portal/settings/organisation.svelte @@ -9,6 +9,7 @@ Input, Dropzone, notifications, + Toggle, } from "@budibase/bbui" import { auth, organisation, admin } from "stores/portal" import { API } from "api" @@ -25,6 +26,7 @@ const values = writable({ company: $organisation.company, platformUrl: $organisation.platformUrl, + analyticsEnabled: $organisation.analyticsEnabled, logo: $organisation.logoUrl ? { url: $organisation.logoUrl, type: "image", name: "Logo" } : null, @@ -54,6 +56,7 @@ const config = { company: $values.company ?? "", platformUrl: $values.platformUrl ?? "", + analyticsEnabled: $values.analyticsEnabled, } // Remove logo if required @@ -123,6 +126,19 @@ {/if} + {#if !$admin.cloud} + + + Analytics + Choose whether to opt-in or opt-out of analtics + +
+
+ + +
+
+ {/if}