Skip to content

Commit

Permalink
MEED-2597 Hide audience when sending kudos through an activity or a c…
Browse files Browse the repository at this point in the history
…omment
  • Loading branch information
MayTekayaa committed Oct 3, 2023
1 parent be6fe0b commit b39b100
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
include-users
name="kudosReceiver"
width="220"
class="user-suggester" />
class="user-suggester mb-2" />
</div>
<exo-user-avatar
v-else
Expand Down Expand Up @@ -166,7 +166,7 @@
</v-list-item>
</div>
<exo-user-avatar
v-if="postInYourNetwork"
v-if="kudosSenderAvatar"
:profile-id="username"
extra-class="text-truncate ms-2 me-1"
link-style
Expand Down Expand Up @@ -410,10 +410,13 @@ export default {
return this.postInYourSpacesChoice && !this.audience;
},
audienceTypesDisplay() {
return (!this.spaceId && !this.isLinkedKudos) || (!this.spaceId && !this.readOnlySpace) || (!this.readOnlySpace && this.postInYourSpacesChoice && !this.audience);
return (!this.spaceId && !this.isLinkedKudos) || (!this.spaceId && !this.readOnlySpace && !this.isLinkedKudos) || (!this.readOnlySpace && this.postInYourSpacesChoice && !this.audience);
},
audienceAvatarDisplay() {
return (this.audience && this.postInYourSpacesChoice) || this.readOnlySpace;
},
kudosSenderAvatar() {
return this.postInYourNetwork || this.isLinkedKudos;
}
},
methods: {
Expand Down

0 comments on commit b39b100

Please sign in to comment.