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 <[email protected]>
  • Loading branch information
raimund-schluessler committed Apr 25, 2022
1 parent c573209 commit 0c64562
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 @@ -55,7 +55,7 @@
"uuid": "^8.3.2",
"v-tooltip": "^2.1.3",
"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 @@ -149,6 +149,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 @@ -416,7 +417,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 @@ -41,11 +41,6 @@ import TrendingUp from 'vue-material-design-icons/TrendingUp'
import { createApp } from 'vue'
// eslint-disable-next-line import/no-named-as-default
// import VTooltip from 'v-tooltip'
// 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 All @@ -59,7 +54,6 @@ __webpack_nonce__ = btoa(OC.requestToken)
__webpack_public_path__ = linkTo('tasks', 'js/')

// Vue.use(VTooltip)
// Vue.use(VueClipboard)

if (!OCA.Tasks) {
/**
Expand Down

0 comments on commit 0c64562

Please sign in to comment.