Skip to content

Commit

Permalink
tested if there exists a reason the share button is clientonly
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Jul 19, 2024
1 parent 34d811a commit dfe78f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions webclient/components/ShareButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ const { copy, copied, isSupported: clipboardIsSupported } = useClipboard({ sourc
const { share, isSupported: shareIsSupported } = useShare();
const modalOpen = ref(false);
const shareOptions = computed<UseShareOptions>(() => ({
const shareOptions = () => ({
title: props.name,
text: document.title,
url: clipboardSource.value,
}));
});
</script>

<template>
Expand Down
4 changes: 1 addition & 3 deletions webclient/pages/[view]/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@ onMounted(() => {
>
<CalendarDaysIcon class="text-blue-600 mt-0.5 h-4 w-4" />
</button>
<ClientOnly>
<ShareButton :coords="data.coords" :name="data.name" />
</ClientOnly>
<ShareButton :coords="data.coords" :name="data.name" />
<DetailsFeedbackButton ref="feedbackButton" />
<!-- <button class="btn btn-link btn-action btn-sm"
:title="t('header.favorites')">
Expand Down

0 comments on commit dfe78f2

Please sign in to comment.