fix: copy original link (#224)
parent
09f80f291b
commit
40bc9cd03b
|
@ -76,8 +76,8 @@ const toggleTranslation = async () => {
|
||||||
isLoading.translation = false
|
isLoading.translation = false
|
||||||
}
|
}
|
||||||
|
|
||||||
const copyLink = async () => {
|
const copyLink = async (url: string) => {
|
||||||
await clipboard.copy(`${location.origin}${getStatusPath(status)}`)
|
await clipboard.copy(url)
|
||||||
}
|
}
|
||||||
const deleteStatus = async () => {
|
const deleteStatus = async () => {
|
||||||
// TODO confirm to delete
|
// TODO confirm to delete
|
||||||
|
@ -194,7 +194,7 @@ function editStatus() {
|
||||||
text="Copy link to this post"
|
text="Copy link to this post"
|
||||||
icon="i-ri:link"
|
icon="i-ri:link"
|
||||||
:command="command"
|
:command="command"
|
||||||
@click="copyLink"
|
@click="copyLink(status.url)"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<NuxtLink :to="status.url" target="_blank">
|
<NuxtLink :to="status.url" target="_blank">
|
||||||
|
|
Loading…
Reference in New Issue