fix: Confirmation modal target name not being displayed correctly in Message.vue due to use of display-name prop rather than target-name
This commit is contained in:
parent
839920f124
commit
e28bc23d12
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ModalConfirmation v-if="confirmationModal && confirmationModal.show" :action-name="confirmationModal.actionName"
|
<ModalConfirmation v-if="confirmationModal && confirmationModal.show" :action-name="confirmationModal.actionName"
|
||||||
:display-name="getDisplayName(props.message.member)" :callback="confirmationModal.callback"
|
:target-name="getDisplayName(props.message.member)" :callback="confirmationModal.callback"
|
||||||
:onClose="resetConfirmationModal" :onCancel="resetConfirmationModal" />
|
:onClose="resetConfirmationModal" :onCancel="resetConfirmationModal" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ import { parse } from 'marked';
|
||||||
import type { MessageProps } from '~/types/props';
|
import type { MessageProps } from '~/types/props';
|
||||||
import MessageMedia from './MessageMedia.vue';
|
import MessageMedia from './MessageMedia.vue';
|
||||||
import MessageReply from './UserInterface/MessageReply.vue';
|
import MessageReply from './UserInterface/MessageReply.vue';
|
||||||
import type { ContextMenuInterface, ContextMenuItem, ContextMenuSection, IConfirmationModal } from '~/types/interfaces';
|
import type { ContextMenuSection, IConfirmationModal } from '~/types/interfaces';
|
||||||
|
|
||||||
const { getDisplayName } = useProfile()
|
const { getDisplayName } = useProfile()
|
||||||
const { getUser } = useAuth()
|
const { getUser } = useAuth()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue