Commit d1fd2db1 authored by Henrik.Askjer's avatar Henrik.Askjer
Browse files

hide copy link if not supported

parent 64f366b1
......@@ -18,12 +18,11 @@
</template>
</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">
<v-icon small>link</v-icon><span class = "button-text">Kopier lenke</span>
</v-btn>
<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-btn>
......@@ -65,6 +64,9 @@ export default {
webShareApiSupported() {
return navigator.share
},
showLinkCopy() {
return (!navigator.share || this.$vuetify.breakpoint.mdAndUp) && navigator.clipboard
},
hasPointer() {
return window.matchMedia('(hover: hover) and (pointer: fine)').matches
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment