|
4 | 4 | v-model="isModalOpen"
|
5 | 5 | title="Unmerge identity"
|
6 | 6 | size="2extra-large"
|
7 |
| - custom-class="p-0" |
| 7 | + custom-class="p-0 !mt-5" |
8 | 8 | >
|
9 | 9 | <template #header>
|
10 | 10 | <h3 class="text-lg font-semibold">
|
|
34 | 34 | <app-member-suggestions-details
|
35 | 35 | v-if="!preview && props.modelValue"
|
36 | 36 | :member="props.modelValue"
|
37 |
| - :compare-member="preview" |
38 | 37 | :is-primary="true"
|
39 | 38 | >
|
40 | 39 | <template #header>
|
|
46 | 45 | </div>
|
47 | 46 | </div>
|
48 | 47 | </template>
|
| 48 | + <template #property> |
| 49 | + <article |
| 50 | + v-if="props.modelValue.activityCount" |
| 51 | + class="pb-4" |
| 52 | + > |
| 53 | + <p class="text-2xs font-medium text-gray-500 pb-1"> |
| 54 | + Activity count |
| 55 | + </p> |
| 56 | + <p class="text-xs text-gray-900 whitespace-normal"> |
| 57 | + {{ props.modelValue.activityCount || '-' }} |
| 58 | + </p> |
| 59 | + </article> |
| 60 | + </template> |
| 61 | + <template #below> |
| 62 | + <div v-if="props.modelValue?.organizations?.length" class="pt-3"> |
| 63 | + <h6 class="text-sm font-semibold text-black pb-4"> |
| 64 | + Organizations |
| 65 | + </h6> |
| 66 | + <app-member-organization-list :member="props.modelValue" /> |
| 67 | + </div> |
| 68 | + </template> |
49 | 69 | </app-member-suggestions-details>
|
50 | 70 | <app-member-suggestions-details
|
51 | 71 | v-else-if="preview"
|
|
62 | 82 | </div>
|
63 | 83 | </div>
|
64 | 84 | </template>
|
| 85 | + <template #property> |
| 86 | + <article |
| 87 | + v-if="preview.primary.activityCount || preview.secondary.activityCount" |
| 88 | + class="pb-4" |
| 89 | + > |
| 90 | + <p class="text-2xs font-medium text-gray-500 pb-1"> |
| 91 | + Activity count |
| 92 | + </p> |
| 93 | + <p class="text-xs text-gray-900 whitespace-normal"> |
| 94 | + {{ preview.primary.activityCount || '-' }} |
| 95 | + </p> |
| 96 | + </article> |
| 97 | + </template> |
| 98 | + <template #below> |
| 99 | + <div v-if="preview.primary?.organizations?.length" class="pt-3"> |
| 100 | + <h6 class="text-sm font-semibold text-black pb-4"> |
| 101 | + Organizations |
| 102 | + </h6> |
| 103 | + <app-member-organization-list :member="preview.primary" /> |
| 104 | + </div> |
| 105 | + </template> |
65 | 106 | </app-member-suggestions-details>
|
66 | 107 | </div>
|
67 | 108 | <div class="w-1/2 px-3">
|
|
119 | 160 | </div>
|
120 | 161 | </div>
|
121 | 162 | </template>
|
| 163 | + <template #engagementLevel> |
| 164 | + <div class="flex items-center"> |
| 165 | + <div class="border border-gray-200 bg-gray-100 py-px px-1.5 text-gray-600 text-xs leading-5 rounded-md mr-1"> |
| 166 | + Unknown |
| 167 | + </div> |
| 168 | + <el-tooltip content="Calculated after contact is unmerged" placement="top"> |
| 169 | + <div class="ri-question-line text-base text-gray-400" /> |
| 170 | + </el-tooltip> |
| 171 | + </div> |
| 172 | + </template> |
| 173 | + <template #property> |
| 174 | + <article |
| 175 | + v-if="preview.primary.activityCount || preview.secondary.activityCount" |
| 176 | + class="pb-4" |
| 177 | + > |
| 178 | + <p class="text-2xs font-medium text-gray-500 pb-1"> |
| 179 | + Activity count |
| 180 | + </p> |
| 181 | + <p class="text-xs text-gray-900 whitespace-normal"> |
| 182 | + {{ preview.primary.activityCount || '-' }} |
| 183 | + </p> |
| 184 | + </article> |
| 185 | + </template> |
| 186 | + <template #below> |
| 187 | + <div v-if="preview.secondary?.organizations?.length" class="pt-3"> |
| 188 | + <h6 class="text-sm font-semibold text-black pb-4"> |
| 189 | + Organizations |
| 190 | + </h6> |
| 191 | + <app-member-organization-list :member="preview.secondary" /> |
| 192 | + </div> |
| 193 | + </template> |
122 | 194 | </app-member-suggestions-details>
|
123 | 195 | </div>
|
124 | 196 | <!-- Identity selection -->
|
@@ -167,6 +239,8 @@ import Message from '@/shared/message/message';
|
167 | 239 | import AppDialog from '@/shared/dialog/dialog.vue';
|
168 | 240 | import CrSpinner from '@/ui-kit/spinner/Spinner.vue';
|
169 | 241 | import { CrowdIntegrations } from '@/integrations/integrations-config';
|
| 242 | +import moment from 'moment/moment'; |
| 243 | +import AppMemberOrganizationList from '@/modules/member/components/suggestions/member-organizations-list.vue'; |
170 | 244 | import AppMemberSuggestionsDetails from './suggestions/member-merge-suggestions-details.vue';
|
171 | 245 |
|
172 | 246 | const props = defineProps({
|
|
0 commit comments