-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Features/228 signed url store (#229)
* ➕ move navbar avatar to separate component (cherry picked from commit 2d5dc90) * ➕ add signed url to user store (cherry picked from commit 5adee89) --------- Co-authored-by: Andreas Müller <[email protected]>
- Loading branch information
1 parent
7013248
commit e15654b
Showing
5 changed files
with
61 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<template> | ||
<div | ||
class="w-12 h-12 mr-4 self-center flex-center rounded-full text-lg bg-white font-normal text-white" | ||
:class="{'!bg-teal-500': user.data.avatarUrl === null}" | ||
> | ||
<span v-if="user.data.avatarUrl === null"> | ||
{{ initials(user.data.name) }} | ||
</span> | ||
<span v-else> | ||
<img class="rounded-full w-[48px] h-[48px]" :alt="initials(user.data.name)" :src="user.data.avatarUrl"/> | ||
</span> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { initials } from '@/utils'; | ||
import { useUserStore } from '@/stores/user-store'; | ||
const user = useUserStore(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters