Skip to content
Snippets Groups Projects
Commit b08b741c authored by robinwilliam.hundt's avatar robinwilliam.hundt
Browse files

Fixed copy to clipboard

fixes #137
parent 4b57a2c0
No related branches found
No related tags found
1 merge request!143Fixed copy to clipboard
Pipeline #90642 failed
......@@ -28,6 +28,7 @@
import CorrectionHelpCard from '@/components/submission_notes/CorrectionHelpCard'
import { mapState } from 'vuex'
import ToggleFeedbackVisibilityButton from '@/components/submission_notes/toolbars/ToggleFeedbackVisibilityButton'
import { SubmissionNotes } from '@/store/modules/submission-notes';
export default {
components: {
......@@ -40,15 +41,9 @@ export default {
copyMessage: 'Copy to clipboard'
}
},
computed: {
...mapState({
submission: state => state.submissionNotes.submission.text,
showFeedback: state => state.submissionNotes.ui.showFeedback
})
},
methods: {
copyToClipboard () {
this.$clipboard(this.submission)
this.$clipboard(SubmissionNotes.state.submission.text)
this.copyMessage = 'Copied!'
setTimeout(() => {
this.copyMessage = 'Copy to clipboard'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment