mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-05 00:19:59 +00:00
fix: copy original link (#224)
This commit is contained in:
parent
09f80f291b
commit
40bc9cd03b
1 changed files with 3 additions and 3 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue