1
0

feat: remove copy-to-clipboard (#1797)

Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/1797
Co-authored-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
Co-committed-by: Dominik Pschenitschni <dpschen@noreply.kolaente.de>
This commit is contained in:
Dominik Pschenitschni
2022-04-23 15:58:29 +00:00
committed by konrad
parent 2083a52a56
commit 17a42dc2e7
9 changed files with 109 additions and 89 deletions

View File

@ -183,8 +183,8 @@ import rights from '../../models/constants/rights'
import LinkShareService from '../../services/linkShare'
import LinkShareModel from '../../models/linkShare'
import copy from 'copy-to-clipboard'
import {mapState} from 'vuex'
import { useCopyToClipboard } from '@/composables/useCopyToClipboard'
export default defineComponent({
name: 'linkSharing',
@ -207,6 +207,11 @@ export default defineComponent({
showNewForm: false,
}
},
setup() {
return {
copy: useCopyToClipboard(),
}
},
watch: {
listId: {
handler: 'load',
@ -253,7 +258,6 @@ export default defineComponent({
this.showDeleteModal = false
}
},
copy,
getShareLink(hash) {
return this.frontendUrl + 'share/' + hash + '/auth'
},