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

View File

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