Skip to content
Snippets Groups Projects
Commit 13951164 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

specify what has been copied

parent f5735a14
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@
v-model='copy_popup'
timeout="2000">
<span class="text-center">Kopiert til utklippstavla</span>
<span class="text-center">{{what_copied}} kopiert til utklippstavla</span>
<template v-slot:action="{ attrs }">
<v-btn
color="primary"
......@@ -71,7 +71,8 @@ export default {
data: function() {
return {
copy_popup: false,
citation_dialog: false
citation_dialog: false,
what_copied: null
}
},
......@@ -104,6 +105,7 @@ export default {
},
copy_link() {
navigator.clipboard.writeText(this.create_link());
this.what_copied = "Lenke"
this.copy_popup = true
},
......@@ -112,6 +114,7 @@ export default {
let citation = document.getElementById("citation").textContent;
navigator.clipboard.writeText(citation)
this.citation_dialog = false
this.what_copied = "Sitering"
this.copy_popup = true
},
......
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