Skip to content
Snippets Groups Projects
Commit 3a175a68 authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Merge branch 'bugfix/128-fix-gravatar-avatar-for-non-existing-emails' into 'main'

Resolve "Fix gravatar avatar for non-existing emails"

Closes #128

See merge request !125
parents 5e2e8974 1c7bffb3
Branches
Tags
1 merge request!125Resolve "Fix gravatar avatar for non-existing emails"
......@@ -3,6 +3,7 @@ import { useUserStore } from "@/stores/users";
import { useRoute, useRouter } from "vue-router";
import { watch, ref, computed } from "vue";
import { OpenAPI } from "@/client";
import FontAwesomeIcon from "@/components/FontAwesomeIcon.vue";
const userRepository = useUserStore();
const route = useRoute();
......@@ -265,12 +266,18 @@ watch(
>
<strong class="me-2">{{ userRepository.user.display_name }}</strong>
<img
v-if="userRepository.user.gravatar_url"
:src="userRepository.user.gravatar_url + '?d=mp&s=32'"
class="rounded-circle"
height="32"
width="32"
alt="profile picture"
/>
<font-awesome-icon
v-else
icon="fa-solid fa-circle-user"
class="text-secondary fs-4"
/>
</a>
<ul
class="dropdown-menu text-small shadow"
......
......@@ -213,12 +213,19 @@ onMounted(() => {
<tr v-for="(user, index) in userState.users" :key="user.uid">
<th scope="row">
<img
v-if="user.gravatar_url"
:src="user.gravatar_url + '?d=mp&s=32'"
class="rounded-circle me-2"
class="rounded-circle"
height="32"
width="32"
alt="profile picture"
/>{{ user.display_name }}
/>
<font-awesome-icon
v-else
icon="fa-solid fa-circle-user"
class="text-secondary fs-4"
/>
<span class="ms-2">{{ user.display_name }}</span>
</th>
<td>{{ user.uid }}</td>
<td
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment