Skip to content
Snippets Groups Projects
Commit ee1364a1 authored by Shpuld Shpludson's avatar Shpuld Shpludson
Browse files

add no-statusId support for status popover

parent 6529f9fa
No related branches found
No related tags found
2 merge requests!12172.1.0 into master,!1162#874 Add strike-through to "Reply to" when parent_visible is set to false
Pipeline #27884 passed
......@@ -197,7 +197,7 @@
>
<StatusPopover
v-if="!isPreview"
:status-id="status.in_reply_to_status_id"
:status-id="status.parent_visible && status.in_reply_to_status_id"
class="reply-to-popover"
style="min-width: 0"
>
......
......@@ -22,6 +22,10 @@ const StatusPopover = {
methods: {
enter () {
if (!this.status) {
if (!this.statusId) {
this.error = true
return
}
this.$store.dispatch('fetchStatus', this.statusId)
.then(data => (this.error = false))
.catch(e => (this.error = true))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment