Skip to content

Commit

Permalink
Show default participant icon and fix label for reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
wssheldon committed Nov 30, 2023
1 parent a8d618c commit 345af83
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ watch(
if (newVal) {
selectedParticipant.value = newVal
} else {
selectedParticipant.value = "Select assignee"
selectedParticipant.value = props.type === "assignee" ? "Select assignee" : "Select reporter"
}
},
{ immediate: true }
Expand Down Expand Up @@ -186,9 +186,15 @@ const toggleMenu = () => {
>
<template #prepend>
<v-avatar
v-if="
selectedParticipant !== 'Select assignee' &&
selectedParticipant !== 'Select reporter'
"
size="14px"
:style="{ background: getAvatarGradient(selectedParticipant) }"
/>
<v-icon v-else size="14px">mdi-account-reactivate</v-icon>
<!-- Show icon if selectedParticipant is default -->
</template>
<span style="font-size: 0.8125rem; font-weight: 500; color: rgb(60, 65, 73)">
{{ selectedParticipant }}
Expand Down

0 comments on commit 345af83

Please sign in to comment.