Skip to content

Commit 1e69278

Browse files
refactor(ui): use upstream component name for NcPopover
Signed-off-by: Christoph Wurst <[email protected]>
1 parent 7038825 commit 1e69278

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

src/components/MailboxThread.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<SectionTitle
3737
class="section-title"
3838
:name="t('mail', 'Favorites')" />
39-
<Popover trigger="hover focus">
39+
<NcPopover trigger="hover focus">
4040
<template #trigger="{ attrs }">
4141
<ButtonVue
4242
type="tertiary-no-background"
@@ -51,7 +51,7 @@
5151
<p class="section-header-info">
5252
{{ favoritesInfo }}
5353
</p>
54-
</Popover>
54+
</NcPopover>
5555
</div>
5656
<Mailbox
5757
v-show="hasFavoriteEnvelopes"
@@ -82,7 +82,7 @@
8282
<SectionTitle
8383
class="section-title"
8484
:name="t('mail', 'Favorites')" />
85-
<Popover trigger="hover focus">
85+
<NcPopover trigger="hover focus">
8686
<template #trigger="{ attrs }">
8787
<ButtonVue
8888
type="tertiary-no-background"
@@ -97,7 +97,7 @@
9797
<p class="section-header-info">
9898
{{ favoritesInfo }}
9999
</p>
100-
</Popover>
100+
</NcPopover>
101101
</div>
102102
<Mailbox
103103
v-show="hasFavoriteEnvelopes"
@@ -116,7 +116,7 @@
116116
<SectionTitle
117117
class="section-title"
118118
:name="t('mail', 'Follow up')" />
119-
<Popover trigger="hover focus">
119+
<NcPopover trigger="hover focus">
120120
<template #trigger="{ attrs }">
121121
<ButtonVue
122122
type="tertiary-no-background"
@@ -131,7 +131,7 @@
131131
<p class="section-header-info">
132132
{{ followupInfo }}
133133
</p>
134-
</Popover>
134+
</NcPopover>
135135
</div>
136136
<Mailbox
137137
v-show="hasFollowUpEnvelopes"
@@ -148,7 +148,7 @@
148148
<SectionTitle
149149
class="section-title important"
150150
:name="t('mail', 'Important')" />
151-
<Popover trigger="hover focus">
151+
<NcPopover trigger="hover focus">
152152
<template #trigger="{ attrs }">
153153
<ButtonVue
154154
type="tertiary-no-background"
@@ -163,7 +163,7 @@
163163
<p class="section-header-info">
164164
{{ importantInfo }}
165165
</p>
166-
</Popover>
166+
</NcPopover>
167167
</div>
168168
<Mailbox
169169
v-show="hasImportantEnvelopes"
@@ -200,7 +200,7 @@
200200
</template>
201201

202202
<script>
203-
import { NcAppContent as AppContent, NcAppContentList as AppContentList, NcButton as ButtonVue, isMobile, NcPopover as Popover } from '@nextcloud/vue'
203+
import { NcAppContent as AppContent, NcAppContentList as AppContentList, NcButton as ButtonVue, isMobile, NcPopover } from '@nextcloud/vue'
204204
import addressParser from 'address-rfc2822'
205205
import mitt from 'mitt'
206206
import { mapStores } from 'pinia'
@@ -241,7 +241,7 @@ export default {
241241
IconInfo,
242242
Mailbox,
243243
NoMessageSelected,
244-
Popover,
244+
NcPopover,
245245
SectionTitle,
246246
SearchMessages,
247247
Thread,

src/components/RecipientBubble.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-->
55

66
<template>
7-
<Popover popup-role="dialog" class="contact-popover">
7+
<NcPopover popup-role="dialog" class="contact-popover">
88
<template #trigger="{ attrs }">
99
<UserBubble
1010
v-bind="attrs"
@@ -109,13 +109,13 @@
109109
</div>
110110
</div>
111111
</template>
112-
</Popover>
112+
</NcPopover>
113113
</template>
114114

115115
<script>
116116
import { showError, showSuccess } from '@nextcloud/dialogs'
117117
import { generateUrl } from '@nextcloud/router'
118-
import { NcButton as ButtonVue, NcSelect, NcPopover as Popover, NcUserBubble as UserBubble } from '@nextcloud/vue'
118+
import { NcButton as ButtonVue, NcSelect, NcPopover, NcUserBubble as UserBubble } from '@nextcloud/vue'
119119
import debouncePromise from 'debounce-promise'
120120
import uniqBy from 'lodash/fp/uniqBy.js'
121121
import IconUser from 'vue-material-design-icons/AccountOutline.vue'
@@ -137,7 +137,7 @@ export default {
137137
components: {
138138
ButtonVue,
139139
UserBubble,
140-
Popover,
140+
NcPopover,
141141
NcSelect,
142142
IconReply,
143143
IconUser,

src/components/Thread.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
:email="participant.email"
2525
:label="participant.label" />
2626
<!-- Indicator to show that there are more participants than displayed -->
27-
<Popover
27+
<NcPopover
2828
v-if="threadParticipants.length > participantsToDisplay"
2929
class="avatar-more">
3030
<template #trigger="{ attrs }">
@@ -39,7 +39,7 @@
3939
:title="participant.email"
4040
:email="participant.email"
4141
:label="participant.label" />
42-
</Popover>
42+
</NcPopover>
4343
<!-- Remaining participants, if any (Needed to have avatarHeader reactive) -->
4444
<RecipientBubble
4545
v-for="participant in threadParticipants.slice(participantsToDisplay)"
@@ -73,7 +73,7 @@
7373
import { showError } from '@nextcloud/dialogs'
7474
import { loadState } from '@nextcloud/initial-state'
7575
import moment from '@nextcloud/moment'
76-
import { NcAppContentDetails as AppContentDetails, NcPopover as Popover } from '@nextcloud/vue'
76+
import { NcAppContentDetails as AppContentDetails, NcPopover } from '@nextcloud/vue'
7777
import debounce from 'lodash/fp/debounce.js'
7878
import { mapStores } from 'pinia'
7979
import { prop, uniqBy } from 'ramda'
@@ -96,7 +96,7 @@ export default {
9696
Error,
9797
Loading,
9898
ThreadEnvelope,
99-
Popover,
99+
NcPopover,
100100
},
101101
102102
props: {

0 commit comments

Comments
 (0)