mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 04:27:53 +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
50 lines
1.1 KiB
Vue
50 lines
1.1 KiB
Vue
<script>
|
|
export default {
|
|
props: {
|
|
primaryContactName: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
parentContactName: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<!-- eslint-disable-next-line vue/no-root-v-if -->
|
|
<template>
|
|
<div
|
|
v-if="parentContactName"
|
|
class="my-4 relative p-2.5 border rounded-[4px] text-slate-800 dark:text-slate-100 border-slate-100 dark:border-slate-700 bg-white dark:bg-slate-800"
|
|
>
|
|
<h5 class="text-base font-medium text-slate-900 dark:text-white">
|
|
{{ $t('MERGE_CONTACTS.SUMMARY.TITLE') }}
|
|
</h5>
|
|
<ul class="ml-0 list-none">
|
|
<li>
|
|
<span class="inline-block mr-1">❌</span>
|
|
<span
|
|
v-dompurify-html="
|
|
$t('MERGE_CONTACTS.SUMMARY.DELETE_WARNING', {
|
|
primaryContactName,
|
|
})
|
|
"
|
|
/>
|
|
</li>
|
|
<li>
|
|
<span class="inline-block mr-1">✅</span>
|
|
<span
|
|
v-dompurify-html="
|
|
$t('MERGE_CONTACTS.SUMMARY.ATTRIBUTE_WARNING', {
|
|
primaryContactName,
|
|
parentContactName,
|
|
})
|
|
"
|
|
/>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</template>
|