Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Språksamlingane
beta.ordbok.uib.no
Commits
13951164
Commit
13951164
authored
Nov 18, 2021
by
Henrik Askjer
Browse files
specify what has been copied
parent
f5735a14
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/ArticleFooter.vue
View file @
13951164
...
...
@@ -4,7 +4,7 @@
v-model=
'copy_popup'
timeout=
"2000"
>
<span
class=
"text-center"
>
K
opiert til utklippstavla
</span>
<span
class=
"text-center"
>
{{
what_copied
}}
k
opiert 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
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment