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:

committed by
konrad

parent
2083a52a56
commit
17a42dc2e7
@ -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'
|
||||
},
|
||||
|
Reference in New Issue
Block a user