mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update PostComponent, fixes #2351
This commit is contained in:
parent
06f0f80755
commit
7a62a42a4a
1 changed files with 6 additions and 0 deletions
|
@ -40,6 +40,7 @@
|
|||
<span class="fas fa-ellipsis-v text-muted"></span>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
||||
<a class="dropdown-item font-weight-bold" @click="copyPostUrl()">Copy Post Url</a>
|
||||
<a class="dropdown-item font-weight-bold" @click="showEmbedPostModal()">Embed</a>
|
||||
<div v-if="!owner()">
|
||||
<a class="dropdown-item font-weight-bold" :href="reportUrl()">Report</a>
|
||||
|
@ -112,6 +113,7 @@
|
|||
<span class="fas fa-ellipsis-v text-muted"></span>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
||||
<a class="dropdown-item font-weight-bold" @click="copyPostUrl()">Copy Post Url</a>
|
||||
<a class="dropdown-item font-weight-bold" @click="showEmbedPostModal()">Embed</a>
|
||||
<span v-if="!owner()">
|
||||
<a class="dropdown-item font-weight-bold" :href="reportUrl()">Report</a>
|
||||
|
@ -1455,6 +1457,10 @@ export default {
|
|||
}).catch(err => {
|
||||
swal('An Error Occurred', 'Please try again later.', 'error');
|
||||
});
|
||||
},
|
||||
copyPostUrl() {
|
||||
navigator.clipboard.writeText(this.statusUrl);
|
||||
return;
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue