diff options
author | julia.kirschenheuter <julia.kirschenheuter@nextcloud.com> | 2022-12-07 17:29:58 +0100 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2023-01-05 08:57:58 +0100 |
commit | 1063fbcb10b8edc9ceb9804f89f762c526f0cfc0 (patch) | |
tree | fb1f4acb201d676ccb640fc5850a40d4e9480e5a /apps/files_sharing/src/components/SharingEntry.vue | |
parent | 18164ae5163496639737757702f59d52c0c9c657 (diff) | |
download | nextcloud-server-1063fbcb10b8edc9ceb9804f89f762c526f0cfc0.tar.gz nextcloud-server-1063fbcb10b8edc9ceb9804f89f762c526f0cfc0.zip |
Replace custom tooltips with native one in vue components and views
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Diffstat (limited to 'apps/files_sharing/src/components/SharingEntry.vue')
-rw-r--r-- | apps/files_sharing/src/components/SharingEntry.vue | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue index 932f65c20b2..b4549112964 100644 --- a/apps/files_sharing/src/components/SharingEntry.vue +++ b/apps/files_sharing/src/components/SharingEntry.vue @@ -25,12 +25,13 @@ <NcAvatar class="sharing-entry__avatar" :is-no-user="share.type !== SHARE_TYPES.SHARE_TYPE_USER" :user="share.shareWith" - :display-name="share.shareWithDisplayName" - :tooltip-message="share.type === SHARE_TYPES.SHARE_TYPE_USER ? share.shareWith : ''" + :title="share.type === SHARE_TYPES.SHARE_TYPE_USER ? share.shareWithDisplayName : ''" :menu-position="'left'" :url="share.shareWithAvatar" /> + <component :is="share.shareWithLink ? 'a' : 'div'" - v-tooltip.auto="tooltip" + :title="tooltip" + :aria-label="tooltip" :href="share.shareWithLink" class="sharing-entry__desc"> <span>{{ title }}<span v-if="!isUnique" class="sharing-entry__desc-unique"> ({{ share.shareWithDisplayNameUnique }})</span></span> @@ -116,11 +117,6 @@ </NcActionCheckbox> <NcActionTextEditable v-if="hasNote" ref="note" - v-tooltip.auto="{ - content: errors.note, - show: errors.note, - trigger: 'manual' - }" :class="{ error: errors.note}" :disabled="saving" :value="share.newNote || share.note" @@ -147,7 +143,6 @@ import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton' import NcActionCheckbox from '@nextcloud/vue/dist/Components/NcActionCheckbox' import NcActionInput from '@nextcloud/vue/dist/Components/NcActionInput' import NcActionTextEditable from '@nextcloud/vue/dist/Components/NcActionTextEditable' -import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip' import SharesMixin from '../mixins/SharesMixin.js' @@ -163,10 +158,6 @@ export default { NcAvatar, }, - directives: { - Tooltip, - }, - mixins: [SharesMixin], data() { @@ -204,7 +195,6 @@ export default { user: this.share.shareWithDisplayName, owner: this.share.ownerDisplayName, } - if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_GROUP) { return t('files_sharing', 'Shared with the group {user} by {owner}', data) } else if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_ROOM) { |