diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2022-11-11 12:54:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 12:54:07 +0300 |
commit | 53065df53961b7448b9c28d100ca6ee207c3d0d8 (patch) | |
tree | 73565fb1418dd9a3900808ced3d438e17a1c40c1 | |
parent | 28905efda9e3e938e98a3dd85635c4a5ecc2e1f6 (diff) | |
parent | c78623ce1c2f2e80c7e5360feb2f5a846e2ba71f (diff) |
Merge pull request #4730 from nextcloud/backport/4729/stable4.1stable4.1
[stable4.1] Fix clipboard copy
-rw-r--r-- | src/components/AppNavigation/CalendarList/CalendarListItemSharingPublishItem.vue | 2 | ||||
-rw-r--r-- | src/components/AppNavigation/Settings.vue | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/components/AppNavigation/CalendarList/CalendarListItemSharingPublishItem.vue b/src/components/AppNavigation/CalendarList/CalendarListItemSharingPublishItem.vue index 7768a29b..baf0a915 100644 --- a/src/components/AppNavigation/CalendarList/CalendarListItemSharingPublishItem.vue +++ b/src/components/AppNavigation/CalendarList/CalendarListItemSharingPublishItem.vue @@ -342,7 +342,7 @@ export default { // copy link for calendar to clipboard try { - await this.$copyText(code) + await navigator.clipboard.writeText(code) this.menuOpen = true this.showCopyEmbedCodeLinkLabel = false this.showCopyEmbedCodeLinkSpinner = false diff --git a/src/components/AppNavigation/Settings.vue b/src/components/AppNavigation/Settings.vue index e9d5510a..5f8c4d0a 100644 --- a/src/components/AppNavigation/Settings.vue +++ b/src/components/AppNavigation/Settings.vue @@ -392,7 +392,7 @@ export default { */ async copyPrimaryCalDAV() { try { - await this.$copyText(generateRemoteUrl('dav')) + await navigator.clipboard.writeText(generateRemoteUrl('dav')) showSuccess(this.$t('calendar', 'CalDAV link copied to clipboard.')) } catch (error) { console.debug(error) |