4040 class =" sharing-entry__copy" >
4141 <NcActionLink :href =" shareLink"
4242 target =" _blank"
43- :aria-label =" clipboardTooltip"
43+ :title =" copyLinkTooltip"
44+ :aria-label =" copyLinkTooltip"
4445 :icon =" copied && copySuccess ? 'icon-checkmark-color' : 'icon-clippy'"
45- @click.stop.prevent =" copyLink" >
46- {{ clipboardTooltip }}
47- </NcActionLink >
46+ @click.stop.prevent =" copyLink" />
4847 </NcActions >
4948
5049 <!-- pending actions -->
7574 @uncheck =" onPasswordDisable" >
7675 {{ t('files_sharing', 'Password protection') }}
7776 </NcActionCheckbox >
77+
7878 <NcActionInput v-if =" pendingPassword || share.password"
79- v-tooltip.auto =" {
80- content: errors.password,
81- show: errors.password,
82- trigger: 'manual',
83- defaultContainer: '#app-sidebar'
84- }"
8579 class =" share-link-password"
8680 :value.sync =" share.password"
8781 :disabled =" saving"
131125 <template v-if =" share .canEdit && canReshare " >
132126 <!-- Custom Label -->
133127 <NcActionInput ref =" label"
134- v-tooltip.auto =" {
135- content: errors.label,
136- show: errors.label,
137- trigger: 'manual',
138- defaultContainer: '.app-sidebar'
139- }"
140128 :class =" { error: errors.label }"
141129 :disabled =" saving"
142130 :label =" t('files_sharing', 'Share label')"
167155 ? t('files_sharing', 'Password protection (enforced)')
168156 : t('files_sharing', 'Password protect') }}
169157 </NcActionCheckbox >
158+
170159 <NcActionInput v-if =" isPasswordProtected"
171160 ref =" password"
172- v-tooltip.auto =" {
173- content: errors.password,
174- show: errors.password,
175- trigger: 'manual',
176- defaultContainer: '#app-sidebar'
177- }"
178161 class =" share-link-password"
179162 :class =" { error: errors.password}"
180163 :disabled =" saving"
233216 @uncheck =" queueUpdate('note')" >
234217 {{ t('files_sharing', 'Note to recipient') }}
235218 </NcActionCheckbox >
219+
236220 <NcActionTextEditable v-if =" hasNote"
237221 ref =" note"
238- v-tooltip.auto =" {
239- content: errors.note,
240- show: errors.note,
241- trigger: 'manual',
242- defaultContainer: '#app-sidebar'
243- }"
244222 :class =" { error: errors.note}"
245223 :disabled =" saving"
246224 :placeholder =" t('files_sharing', 'Enter a note for the share recipient')"
286264 <!-- Create new share -->
287265 <NcActionButton v-else-if =" canReshare"
288266 class =" new-share-link"
267+ :title =" t('files_sharing', 'Create a new share link')"
268+ :aria-label =" t('files_sharing', 'Create a new share link')"
289269 :icon =" loading ? 'icon-loading-small' : 'icon-add'"
290- @click.prevent.stop =" onNewLinkShare" >
291- {{ t('files_sharing', 'Create a new share link') }}
292- </NcActionButton >
270+ @click.prevent.stop =" onNewLinkShare" />
293271 </NcActions >
294272
295273 <!-- loading indicator to replace the menu -->
@@ -312,7 +290,6 @@ import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator'
312290import NcActionTextEditable from ' @nextcloud/vue/dist/Components/NcActionTextEditable'
313291import NcActions from ' @nextcloud/vue/dist/Components/NcActions'
314292import NcAvatar from ' @nextcloud/vue/dist/Components/NcAvatar'
315- import Tooltip from ' @nextcloud/vue/dist/Directives/Tooltip'
316293
317294import ExternalShareAction from ' ./ExternalShareAction.vue'
318295import SharePermissionsEditor from ' ./SharePermissionsEditor.vue'
@@ -337,10 +314,6 @@ export default {
337314 SharePermissionsEditor,
338315 },
339316
340- directives: {
341- Tooltip,
342- },
343-
344317 mixins: [SharesMixin],
345318
346319 props: {
@@ -564,21 +537,12 @@ export default {
564537 return window .location .protocol + ' //' + window .location .host + generateUrl (' /s/' ) + this .share .token
565538 },
566539
567- /**
568- * Tooltip message for actions button
569- *
570- * @return {string}
571- */
572- actionsTooltip () {
573- return t (' files_sharing' , ' Actions for "{title}"' , { title: this .title })
574- },
575-
576540 /**
577541 * Tooltip message for copy button
578542 *
579543 * @return {string}
580544 */
581- clipboardTooltip () {
545+ copyLinkTooltip () {
582546 if (this .copied ) {
583547 if (this .copySuccess ) {
584548 return ' '
@@ -746,6 +710,7 @@ export default {
746710 // otherwise the user needs to copy/paste the password before finishing the share.
747711 component .copyLink ()
748712 }
713+ showSuccess (t (' sharing' , ' Link share created' ))
749714
750715 } catch (data) {
751716 const message = data? .response ? .data ? .ocs ? .meta ? .message
@@ -783,7 +748,6 @@ export default {
783748 if (typeof this .share .newLabel === ' string' ) {
784749 this .share .label = this .share .newLabel
785750 this .$delete (this .share , ' newLabel' )
786- showSuccess (t (' files_sharing' , ' Share label saved' ))
787751 this .queueUpdate (' label' )
788752 }
789753 },
@@ -851,7 +815,6 @@ export default {
851815 onPasswordSubmit () {
852816 if (this .hasUnsavedPassword ) {
853817 this .share .password = this .share .newPassword .trim ()
854- showSuccess (t (' files_sharing' , ' Share password saved' ))
855818 this .queueUpdate (' password' )
856819 }
857820 },
0 commit comments