Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(PWA): default view for missing profile image (backport #1343) #1344

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions frontend/src/views/Profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,19 @@
</header>

<div class="flex flex-col items-center mt-5 p-4">
<!-- Profile Image -->
<img
v-if="user.data.user_image"
class="h-24 w-24 rounded-full object-cover"
:src="user.data.user_image"
:alt="user.data.first_name"
/>
<div
v-else
class="flex items-center justify-center bg-gray-200 uppercase text-gray-600 h-24 w-24 rounded-full object-cover"
>
{{ user.data.first_name[0] }}
</div>

<div class="flex flex-col gap-1.5 items-center mt-2 mb-5">
<span v-if="employee" class="text-lg font-bold text-gray-900">{{
Expand Down
Loading