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

Fixed copy to clipboard

fixes #137
parent 49c457e6
No related branches found
No related tags found
No related merge requests found
Pipeline #89046 passed
......@@ -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