mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
These fixes are all auto generated and can be merged directly Fixes the following issues 1. Event used on components should be hypenated 2. Attribute orders in components 3. Use `unmounted` instead of `destroyed` 4. Add explicit `emits` declarations for components, autofixed [using this script](https://gist.github.com/scmmishra/6f549109b96400006bb69bbde392eddf) We ignore the top level v-if for now, we will fix it later
51 lines
1.2 KiB
Vue
51 lines
1.2 KiB
Vue
<script>
|
|
import MessagePreview from 'dashboard/components/widgets/conversation/MessagePreview.vue';
|
|
|
|
export default {
|
|
components: { MessagePreview },
|
|
props: {
|
|
message: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
},
|
|
emits: ['dismiss'],
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div
|
|
class="reply-editor bg-slate-50 dark:bg-slate-800 rounded-md py-1 pl-2 pr-1 text-xs tracking-wide mt-2 flex items-center gap-1.5 -mx-2"
|
|
>
|
|
<fluent-icon class="flex-shrink-0 icon" icon="arrow-reply" size="14" />
|
|
<div class="flex-grow gap-1 mt-px text-xs truncate">
|
|
{{ $t('CONVERSATION.REPLYBOX.REPLYING_TO') }}
|
|
<MessagePreview
|
|
:message="message"
|
|
:show-message-type="false"
|
|
:default-empty-message="$t('CONVERSATION.REPLY_MESSAGE_NOT_FOUND')"
|
|
class="inline"
|
|
/>
|
|
</div>
|
|
<woot-button
|
|
v-tooltip="$t('CONVERSATION.REPLYBOX.DISMISS_REPLY')"
|
|
color-scheme="secondary"
|
|
icon="dismiss"
|
|
variant="clear"
|
|
size="tiny"
|
|
class="flex-shrink-0"
|
|
@click.stop="$emit('dismiss')"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<style lang="scss">
|
|
// TODO: Remove this
|
|
// override for dashboard/assets/scss/widgets/_reply-box.scss
|
|
.reply-editor {
|
|
.icon {
|
|
margin-right: 0px !important;
|
|
}
|
|
}
|
|
</style>
|