0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-04-01 02:51:27 -05:00

add icon indicating when metrics are being shared

This commit is contained in:
Daniel Dietzler 2023-12-28 19:29:16 +01:00
parent fb01bd956f
commit ac4c57247e
No known key found for this signature in database
GPG key ID: A1C0B97CD8E18DFF

View file

@ -7,8 +7,9 @@
import Icon from '$lib/components/elements/icon.svelte';
import { asByteUnitString } from '../../utils/byte-units';
import LoadingSpinner from './loading-spinner.svelte';
import { mdiCloud, mdiDns } from '@mdi/js';
import { mdiCloud, mdiDns, mdiEyeOutline } from '@mdi/js';
import { serverInfoStore } from '$lib/stores/server-info.store';
import { featureFlags } from '$lib/stores/server-config.store';
const { serverVersion, connected } = websocketStore;
@ -70,7 +71,12 @@
<Icon path={mdiDns} size={'24'} />
</div>
<div class="hidden text-xs group-hover:sm:block md:block">
<p class="text-sm font-medium text-immich-primary dark:text-immich-dark-primary">Server</p>
<div class="text-sm font-medium text-immich-primary dark:text-immich-dark-primary flex justify-between">
<p>Server</p>
{#if $featureFlags.metrics}
<Icon path={mdiEyeOutline} title="This instance is currently sharing metrics with Immich." />
{/if}
</div>
<div class="mt-2 flex justify-between justify-items-center">
<p>Status</p>