Add data-profile-id attribute to profile block on profile page

This commit is contained in:
silverpill 2023-02-27 23:37:12 +00:00
parent e888589105
commit 7baf094e14
2 changed files with 11 additions and 2 deletions

View file

@ -1,5 +1,10 @@
<template>
<div class="post" :class="{ highlighted: highlighted }" :data-post-id="post.id" :id="post.id">
<div
class="post"
:class="{ highlighted: highlighted }"
:data-post-id="post.id"
:id="post.id"
>
<div class="post-header">
<a
class="floating-avatar"

View file

@ -4,7 +4,11 @@
<div class="not-found" v-if="!profile && !isLoading">
Profile not found
</div>
<div class="profile-block" v-if="profile">
<div
class="profile-block"
v-if="profile"
:data-profile-id="profile.id"
>
<div class="profile-header">
<img v-if="profile.header" :src="profile.header">
</div>