fix: copy original link (#224)

zio/stable
Daniel Roe 2022-11-29 11:18:11 +00:00 committed by GitHub
parent 09f80f291b
commit 40bc9cd03b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -76,8 +76,8 @@ const toggleTranslation = async () => {
isLoading.translation = false
}
const copyLink = async () => {
await clipboard.copy(`${location.origin}${getStatusPath(status)}`)
const copyLink = async (url: string) => {
await clipboard.copy(url)
}
const deleteStatus = async () => {
// TODO confirm to delete
@ -194,7 +194,7 @@ function editStatus() {
text="Copy link to this post"
icon="i-ri:link"
:command="command"
@click="copyLink"
@click="copyLink(status.url)"
/>
<NuxtLink :to="status.url" target="_blank">