mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
Merge 750042164e into 9773d72428
This commit is contained in:
commit
de46ee5922
4 changed files with 6 additions and 6 deletions
|
|
@ -11,7 +11,7 @@
|
|||
id: string;
|
||||
name: string;
|
||||
email: string;
|
||||
profileImagePath: string;
|
||||
profileImagePath: string | null;
|
||||
avatarColor: UserAvatarColor;
|
||||
profileChangedAt: string;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,9 +36,9 @@
|
|||
<Icon icon={mdiAndroid} size="40" />
|
||||
{:else if session.deviceOS === 'iOS' || session.deviceOS === 'macOS'}
|
||||
<Icon icon={mdiApple} size="40" />
|
||||
{:else if session.deviceOS.includes('Safari')}
|
||||
{:else if session.deviceOS?.includes('Safari')}
|
||||
<Icon icon={mdiAppleSafari} size="40" />
|
||||
{:else if session.deviceOS.includes('Windows')}
|
||||
{:else if session.deviceOS?.includes('Windows')}
|
||||
<Icon icon={mdiMicrosoftWindows} size="40" />
|
||||
{:else if session.deviceOS === 'Linux'}
|
||||
<Icon icon={mdiLinux} size="40" />
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
const onSave = async (color: UserAvatarColor) => {
|
||||
try {
|
||||
if (authManager.user.profileImagePath !== '') {
|
||||
if (authManager.user.profileImagePath) {
|
||||
await deleteProfileImage();
|
||||
}
|
||||
|
||||
|
|
@ -38,7 +38,7 @@
|
|||
<button type="button" onclick={() => onSave(color)}>
|
||||
<UserAvatar
|
||||
label={color}
|
||||
user={{ ...authManager.user, profileImagePath: '', avatarColor: color }}
|
||||
user={{ ...authManager.user, profileImagePath: null, avatarColor: color }}
|
||||
size="xl"
|
||||
/>
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@
|
|||
personIds.map(async (personId) => {
|
||||
const person = await getPerson({ id: personId });
|
||||
|
||||
if (person.name == '') {
|
||||
if (!person.name) {
|
||||
return $t('no_name');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue