Skip to content

Commit 7f7aebc

Browse files
committed
fix: group multiple emails or phone numbers
Signed-off-by: AntKru <[email protected]>
1 parent 2555009 commit 7f7aebc

1 file changed

Lines changed: 32 additions & 20 deletions

File tree

src/components/ContactDetails.vue

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -76,40 +76,48 @@
7676
</template>
7777

7878
<template #quick-actions>
79-
<div v-if="!editMode && !loadingData">
79+
<div v-if="!editMode && !loadingData" class="quick-actions">
80+
<NcButton
81+
v-if="isTalkEnabled && isInSystemAddressBook"
82+
:aria-label="t('contacts', 'Go to talk conversation')"
83+
:name="t('contacts', 'Go to talk conversation')"
84+
class="icon-talk quick-action"
85+
:href="callUrl" />
86+
<NcButton
87+
v-if="profilePageLink"
88+
class="quick-action"
89+
:aria-label="t('contacts', 'View profile')"
90+
:name="t('contacts', 'View profile')"
91+
:href="profilePageLink">
92+
<template #icon>
93+
<IconAccount :size="20" />
94+
</template>
95+
</NcButton>
8096
<Actions
81-
:inline="6"
97+
class="quick-action"
8298
variant="secondary">
83-
<ActionButton
84-
v-if="isTalkEnabled && isInSystemAddressBook"
85-
:aria-label="t('contacts', 'Go to talk conversation')"
86-
:name="t('contacts', 'Go to talk conversation')"
87-
class="icon-talk quick-action"
88-
:href="callUrl" />
89-
<ActionButton
90-
v-if="profilePageLink"
91-
class="quick-action"
92-
:aria-label="t('contacts', 'View profile')"
93-
:name="t('contacts', 'View profile')"
94-
:href="profilePageLink">
95-
<template #icon>
96-
<IconAccount :size="20" />
97-
</template>
98-
</ActionButton>
99+
<template #icon>
100+
<IconMail :size="20" />
101+
</template>
99102
<ActionLink
100103
v-for="emailAddress in emailAddressList"
101104
:key="emailAddress"
102-
class="quick-action"
103105
:href="'mailto:' + emailAddress">
104106
<template #icon>
105107
<IconMail :size="20" />
106108
</template>
107109
{{ emailAddress }}
108110
</ActionLink>
111+
</Actions>
112+
<Actions
113+
class="quick-action"
114+
variant="secondary">
115+
<template #icon>
116+
<IconCall :size="20" />
117+
</template>
109118
<ActionLink
110119
v-for="phoneNumber in phoneNumberList"
111120
:key="phoneNumber"
112-
class="quick-action"
113121
:href="'tel:' + phoneNumber">
114122
<template #icon>
115123
<IconCall :size="20" />
@@ -1277,4 +1285,8 @@ section.contact-details {
12771285
:deep(.contact-details-wrapper-read-only .input-field__input) {
12781286
box-shadow: none !important;
12791287
}
1288+
1289+
.quick-actions {
1290+
display: flex;
1291+
}
12801292
</style>

0 commit comments

Comments
 (0)