mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-21 00:21:35 +03:00
Show analytics settings title conditionally
- we don't want it in the analytics confirmation component
This commit is contained in:
parent
492a880442
commit
80dab85ae2
@ -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
|
||||||
|
@ -308,7 +308,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<AnalyticsSettings />
|
<AnalyticsSettings showTitle />
|
||||||
<Spacer />
|
<Spacer />
|
||||||
|
|
||||||
{#if $user$}
|
{#if $user$}
|
||||||
|
Loading…
Reference in New Issue
Block a user