From 6e149e5af01512c47f4e2fc715c75ba8e1dfd34c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arsenije=20Savi=C4=87?= Date: Mon, 21 Oct 2024 09:07:44 -0600 Subject: [PATCH] fix(profile-card): show remove only if has listener --- src/components/profiles/profile-card.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/profiles/profile-card.vue b/src/components/profiles/profile-card.vue index c5332d7d8..63cd91e52 100644 --- a/src/components/profiles/profile-card.vue +++ b/src/components/profiles/profile-card.vue @@ -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'), @@ -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)