1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-16 00:36:47 +01:00

fix(web): Device list shows Ubuntu as unknown OS (#12127)

Co-authored-by: Spencer Fasulo <spencer.fasulo@icloud.com>
This commit is contained in:
Spencer Fasulo 2024-08-29 23:14:05 -04:00 committed by GitHub
parent 8c54312c87
commit 48fb0f309d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,6 +12,7 @@
mdiLinux,
mdiMicrosoftWindows,
mdiTrashCanOutline,
mdiUbuntu,
} from '@mdi/js';
import { DateTime, type ToRelativeCalendarOptions } from 'luxon';
import { createEventDispatcher } from 'svelte';
@ -41,6 +42,8 @@
<Icon path={mdiMicrosoftWindows} size="40" />
{:else if device.deviceOS === 'Linux'}
<Icon path={mdiLinux} size="40" />
{:else if device.deviceOS === 'Ubuntu'}
<Icon path={mdiUbuntu} size="40" />
{:else if device.deviceOS === 'Chromium OS' || device.deviceType === 'Chrome' || device.deviceType === 'Chromium'}
<Icon path={mdiGoogleChrome} size="40" />
{:else}