4040 class =" sharing-entry__copy" >
4141 <NcActionLink :href =" shareLink"
4242 target =" _blank"
43- :aria-label =" t('files_sharing', 'Copy public link to clipboard')"
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 -->
7473 @uncheck =" onPasswordDisable" >
7574 {{ t('files_sharing', 'Password protection') }}
7675 </NcActionCheckbox >
76+
7777 <NcActionInput v-if =" pendingPassword || share.password"
78- v-tooltip.auto =" {
79- content: errors.password,
80- show: errors.password,
81- trigger: 'manual',
82- defaultContainer: '#app-sidebar'
83- }"
8478 class =" share-link-password"
8579 :value.sync =" share.password"
8680 :disabled =" saving"
129123 <template v-if =" share .canEdit && canReshare " >
130124 <!-- Custom Label -->
131125 <NcActionInput ref =" label"
132- v-tooltip.auto =" {
133- content: errors.label,
134- show: errors.label,
135- trigger: 'manual',
136- defaultContainer: '.app-sidebar'
137- }"
138126 :class =" { error: errors.label }"
139127 :disabled =" saving"
140128 :aria-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: {
@@ -558,18 +531,18 @@ export default {
558531 },
559532
560533 /**
561- * Clipboard v-tooltip message
534+ * Tooltip message for copy button
562535 *
563536 * @return {string}
564537 */
565- clipboardTooltip () {
538+ copyLinkTooltip () {
566539 if (this .copied ) {
567540 if (this .copySuccess ) {
568541 return ' '
569542 }
570543 return t (' files_sharing' , ' Cannot copy, please copy the link manually' )
571544 }
572- return t (' files_sharing' , ' Copy to clipboard' )
545+ return t (' files_sharing' , ' Copy public link to clipboard' )
573546 },
574547
575548 /**
@@ -730,6 +703,7 @@ export default {
730703 // otherwise the user needs to copy/paste the password before finishing the share.
731704 component .copyLink ()
732705 }
706+ showSuccess (t (' sharing' , ' Link share created' ))
733707
734708 } catch (data) {
735709 const message = data? .response ? .data ? .ocs ? .meta ? .message
@@ -767,7 +741,6 @@ export default {
767741 if (typeof this .share .newLabel === ' string' ) {
768742 this .share .label = this .share .newLabel
769743 this .$delete (this .share , ' newLabel' )
770- showSuccess (t (' files_sharing' , ' Share label saved' ))
771744 this .queueUpdate (' label' )
772745 }
773746 },
@@ -835,7 +808,6 @@ export default {
835808 onPasswordSubmit () {
836809 if (this .hasUnsavedPassword ) {
837810 this .share .password = this .share .newPassword .trim ()
838- showSuccess (t (' files_sharing' , ' Share password saved' ))
839811 this .queueUpdate (' password' )
840812 }
841813 },
0 commit comments