forked from mirror/pixelfed
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>
|
<span class="fas fa-ellipsis-v text-muted"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
<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>
|
<a class="dropdown-item font-weight-bold" @click="showEmbedPostModal()">Embed</a>
|
||||||
<div v-if="!owner()">
|
<div v-if="!owner()">
|
||||||
<a class="dropdown-item font-weight-bold" :href="reportUrl()">Report</a>
|
<a class="dropdown-item font-weight-bold" :href="reportUrl()">Report</a>
|
||||||
|
@ -112,6 +113,7 @@
|
||||||
<span class="fas fa-ellipsis-v text-muted"></span>
|
<span class="fas fa-ellipsis-v text-muted"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
<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>
|
<a class="dropdown-item font-weight-bold" @click="showEmbedPostModal()">Embed</a>
|
||||||
<span v-if="!owner()">
|
<span v-if="!owner()">
|
||||||
<a class="dropdown-item font-weight-bold" :href="reportUrl()">Report</a>
|
<a class="dropdown-item font-weight-bold" :href="reportUrl()">Report</a>
|
||||||
|
@ -1455,6 +1457,10 @@ export default {
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
swal('An Error Occurred', 'Please try again later.', 'error');
|
swal('An Error Occurred', 'Please try again later.', 'error');
|
||||||
});
|
});
|
||||||
|
},
|
||||||
|
copyPostUrl() {
|
||||||
|
navigator.clipboard.writeText(this.statusUrl);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue