mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-20 16:11:46 +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 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">
|
||||
{#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
|
||||
|
@ -308,7 +308,7 @@
|
||||
</div>
|
||||
|
||||
<Spacer />
|
||||
<AnalyticsSettings />
|
||||
<AnalyticsSettings showTitle />
|
||||
<Spacer />
|
||||
|
||||
{#if $user$}
|
||||
|
Loading…
Reference in New Issue
Block a user