Skip to content

Commit

Permalink
Repair copying to clipboard
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
  • Loading branch information
raimund-schluessler committed Apr 26, 2022
1 parent 02691cf commit bf894c7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 25 deletions.
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"p-queue": "^6.6.2",
"uuid": "^8.3.2",
"vue": "^3.2.33",
"vue-clipboard2": "^0.3.3",
"vue-clipboard3": "^2.0.0",
"vue-material-design-icons": "^5.0.0",
"vue-router": "^4.0.14",
"vuedraggable": "^4.1.0",
Expand Down
3 changes: 2 additions & 1 deletion src/components/AppNavigation/ListItemCalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ import Pencil from 'vue-material-design-icons/Pencil'
import ShareVariant from 'vue-material-design-icons/ShareVariant'
import Undo from 'vue-material-design-icons/Undo'
import useClipboard from 'vue-clipboard3'
import ClickOutside from 'click-outside-vue3'
import { mapGetters, mapActions } from 'vuex'
Expand Down Expand Up @@ -428,7 +429,7 @@ export default {
// copy link for calendar to clipboard
try {
await this.$copyText(url)
await useClipboard().toClipboard(url)
event.preventDefault()
this.copySuccess = true
this.copied = true
Expand Down
6 changes: 0 additions & 6 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ import Tag from 'vue-material-design-icons/Tag'
import TrendingUp from 'vue-material-design-icons/TrendingUp'

import { createApp } from 'vue'
// eslint-disable-next-line import/no-named-as-default
// import VueClipboard from 'vue-clipboard2'

// Disable on production
// Vue.config.devtools = true
// Vue.config.performance = true

// CSP config for webpack dynamic chunk loading
// eslint-disable-next-line
Expand Down

0 comments on commit bf894c7

Please sign in to comment.