|
9 | 9 | :aria-label="t('core', 'Search contacts')" |
10 | 10 | @open="handleOpen"> |
11 | 11 | <template #trigger> |
12 | | - <Contacts class="contactsmenu__trigger-icon" :size="20" /> |
| 12 | + <NcIconSvgWrapper class="contactsmenu__trigger-icon" :path="mdiContacts" /> |
13 | 13 | </template> |
14 | 14 | <div class="contactsmenu__menu"> |
15 | 15 | <div class="contactsmenu__menu__input-wrapper"> |
|
27 | 27 | </div> |
28 | 28 | <NcEmptyContent v-if="error" :name="t('core', 'Could not load your contacts')"> |
29 | 29 | <template #icon> |
30 | | - <Magnify /> |
| 30 | + <NcIconSvgWrapper :path="mdiMagnify" /> |
31 | 31 | </template> |
32 | 32 | </NcEmptyContent> |
33 | 33 | <NcEmptyContent v-else-if="loadingText" :name="loadingText"> |
|
37 | 37 | </NcEmptyContent> |
38 | 38 | <NcEmptyContent v-else-if="contacts.length === 0" :name="t('core', 'No contacts found')"> |
39 | 39 | <template #icon> |
40 | | - <Magnify /> |
| 40 | + <NcIconSvgWrapper :path="mdiMagnify" /> |
41 | 41 | </template> |
42 | 42 | </NcEmptyContent> |
43 | 43 | <div v-else class="contactsmenu__menu__content"> |
|
62 | 62 | </template> |
63 | 63 |
|
64 | 64 | <script> |
| 65 | +import { mdiContacts, mdiMagnify } from '@mdi/js' |
65 | 66 | import { generateUrl } from '@nextcloud/router' |
66 | 67 | import { getCurrentUser } from '@nextcloud/auth' |
67 | 68 | import { t } from '@nextcloud/l10n' |
68 | 69 | import axios from '@nextcloud/axios' |
69 | 70 | import debounce from 'debounce' |
70 | 71 |
|
71 | | -import Contacts from 'vue-material-design-icons/ContactsOutline.vue' |
72 | | -import Magnify from 'vue-material-design-icons/Magnify.vue' |
73 | 72 | import NcButton from '@nextcloud/vue/components/NcButton' |
74 | 73 | import NcEmptyContent from '@nextcloud/vue/components/NcEmptyContent' |
75 | 74 | import NcHeaderMenu from '@nextcloud/vue/components/NcHeaderMenu' |
| 75 | +import NcIconSvgWrapper from '@nextcloud/vue/components/NcIconSvgWrapper' |
76 | 76 | import NcLoadingIcon from '@nextcloud/vue/components/NcLoadingIcon' |
| 77 | +import NcTextField from '@nextcloud/vue/components/NcTextField' |
77 | 78 |
|
78 | 79 | import Contact from '../components/ContactsMenu/Contact.vue' |
79 | 80 | import logger from '../logger.js' |
80 | 81 | import Nextcloud from '../mixins/Nextcloud.js' |
81 | | -import NcTextField from '@nextcloud/vue/components/NcTextField' |
82 | 82 |
|
83 | 83 | export default { |
84 | 84 | name: 'ContactsMenu', |
85 | 85 |
|
86 | 86 | components: { |
87 | 87 | Contact, |
88 | | - Contacts, |
89 | | - Magnify, |
90 | 88 | NcButton, |
91 | 89 | NcEmptyContent, |
92 | 90 | NcHeaderMenu, |
| 91 | + NcIconSvgWrapper, |
93 | 92 | NcLoadingIcon, |
94 | 93 | NcTextField, |
95 | 94 | }, |
96 | 95 |
|
97 | 96 | mixins: [Nextcloud], |
98 | 97 |
|
| 98 | + setup() { |
| 99 | + return { |
| 100 | + mdiContacts, |
| 101 | + mdiMagnify, |
| 102 | + } |
| 103 | + }, |
| 104 | +
|
99 | 105 | data() { |
100 | 106 | const user = getCurrentUser() |
101 | 107 | return { |
|
0 commit comments