Show analytics settings title conditionally

- we don't want it in the analytics confirmation component
This commit is contained in:
Mattias Granlund 2024-02-13 19:39:31 +02:00
parent 492a880442
commit 80dab85ae2
2 changed files with 9 additions and 4 deletions

View File

@ -6,12 +6,17 @@
const errorReportingEnabled = appErrorReportingEnabled();
const metricsEnabled = appMetricsEnabled();
let updatedTelemetrySettings = false;
// TODO: Remove this silly prop when we make a new analytics component.
export let showTitle = false;
</script>
<div class="analytics-settings">
<div>
<h2 class="mb-2 text-lg font-medium">Telemetry</h2>
</div>
{#if showTitle}
<div>
<h2 class="mb-2 text-lg font-medium">Telemetry</h2>
</div>
{/if}
<div class="flex flex-col gap-2">
<p class="text-sm text-light-700 dark:text-dark-200">
GitButler uses telemetry strictly to help us improve the client. We do not collect any

View File

@ -308,7 +308,7 @@
</div>
<Spacer />
<AnalyticsSettings />
<AnalyticsSettings showTitle />
<Spacer />
{#if $user$}