diff --git a/src/components/ArticleFooter.vue b/src/components/ArticleFooter.vue index c6989373a57f9ea635c7c897cddde9b9d5c9e105..ec45b722d4c24caf92a017da248ac0e9e98fdbc0 100644 --- a/src/components/ArticleFooter.vue +++ b/src/components/ArticleFooter.vue @@ -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 },