Skip to content

Commit

Permalink
fix(profile-card): show remove only if has listener
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenijesavic committed Oct 21, 2024
1 parent 465131b commit 6e149e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/profiles/profile-card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import { timeZones } from '~/mixins/time-zones'
import { validation } from '~/mixins/validation'
import { calcVoicePercentage } from '~/utils/eosio'
import { dateToStringShort } from '~/utils/TimeUtils'
import helpers from '~/mixins/helpers'
import 'vue-croppa/dist/vue-croppa.css'
export default {
name: 'profile-card',
mixins: [timeZones, validation],
mixins: [timeZones, validation, helpers],
components: {
Chips: () => import('../common/chips.vue'),
ProfilePicture: () => import('../profiles/profile-picture.vue'),
Expand Down Expand Up @@ -280,7 +281,7 @@ widget-editable.relative-position.q-pa-md(:class="{ 'full-width': list, 'cursor-
icon="fas fa-ellipsis-v"
round
size="sm"
v-if="isAdmin"
v-if="isAdmin && hasListener('remove')"
)
q-menu
q-list(dense)
Expand Down

0 comments on commit 6e149e5

Please sign in to comment.