Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/calendar.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2022-11-11 12:34:35 +0300
committerGitHub <noreply@github.com>2022-11-11 12:34:35 +0300
commit896dda330433734edd0b4842b6d307149f1e841b (patch)
treedd26d545d1d01079a6475d125a85ef13124639f1
parentdca69bafef4840717c3d35461666a4a81548ce5d (diff)
parentc14f5aa16fd7c96eb58ba19db8326289faf1f7e8 (diff)
Merge pull request #4729 from EinfachAlex/fix-clipboard-copy
Fix clipboard copy
-rw-r--r--src/components/AppNavigation/CalendarList/CalendarListItemSharingPublishItem.vue2
-rw-r--r--src/components/AppNavigation/Settings.vue2
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)