Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
beta.ordbok.uib.no
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Margunn.Rauset
beta.ordbok.uib.no
Commits
d1fd2db1
Commit
d1fd2db1
authored
3 years ago
by
Henrik Askjer
Browse files
Options
Downloads
Patches
Plain Diff
hide copy link if not supported
parent
64f366b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/ArticleFooter.vue
+4
-2
4 additions, 2 deletions
src/components/ArticleFooter.vue
with
4 additions
and
2 deletions
src/components/ArticleFooter.vue
+
4
−
2
View file @
d1fd2db1
...
@@ -18,12 +18,11 @@
...
@@ -18,12 +18,11 @@
</
template
>
</
template
>
</v-snackbar>
</v-snackbar>
<v-btn
v-if=
"
(!webShareApiSupported || $vuetify.breakpoint.mdAndUp) && navigator.clipboard
"
<v-btn
v-if=
"
showLinkCopy
"
x-small
depressed
class=
"toolbar-button"
rounded
tabindex=
"0"
@
click=
"copy_link"
>
x-small
depressed
class=
"toolbar-button"
rounded
tabindex=
"0"
@
click=
"copy_link"
>
<v-icon
small
>
link
</v-icon><span
class =
"button-text"
>
Kopier lenke
</span>
<v-icon
small
>
link
</v-icon><span
class =
"button-text"
>
Kopier lenke
</span>
</v-btn>
</v-btn>
<v-btn
v-if=
"webShareApiSupported"
depressed
x-small
class=
"toolbar-button"
rounded
tabindex=
"0"
@
click=
"shareViaWebShare"
>
<v-btn
v-if=
"webShareApiSupported"
depressed
x-small
class=
"toolbar-button"
rounded
tabindex=
"0"
@
click=
"shareViaWebShare"
>
<v-icon
x-small
>
share
</v-icon><span
class =
"button-text"
>
Del ordet
</span>
<v-icon
x-small
>
share
</v-icon><span
class =
"button-text"
>
Del ordet
</span>
</v-btn>
</v-btn>
...
@@ -65,6 +64,9 @@ export default {
...
@@ -65,6 +64,9 @@ export default {
webShareApiSupported
()
{
webShareApiSupported
()
{
return
navigator
.
share
return
navigator
.
share
},
},
showLinkCopy
()
{
return
(
!
navigator
.
share
||
this
.
$vuetify
.
breakpoint
.
mdAndUp
)
&&
navigator
.
clipboard
},
hasPointer
()
{
hasPointer
()
{
return
window
.
matchMedia
(
'
(hover: hover) and (pointer: fine)
'
).
matches
return
window
.
matchMedia
(
'
(hover: hover) and (pointer: fine)
'
).
matches
},
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment