Skip to content
Snippets Groups Projects
Commit cb122e3a authored by HJ's avatar HJ :fire:
Browse files

review

parent 3b5fc889
No related branches found
No related tags found
2 merge requests!1028`master` refresh with `develop`,!662Fetching convos via MastoAPI
Pipeline #9416 passed
......@@ -27,7 +27,7 @@ const conversation = {
data () {
return {
highlight: null,
relevantIds: []
converationStatusIds: []
}
},
props: [
......@@ -39,8 +39,8 @@ const conversation = {
return this.statusoid
},
idsToShow () {
if (this.relevantIds.length > 0) {
return this.relevantIds
if (this.converationStatusIds.length > 0) {
return this.converationStatusIds
} else if (this.statusId) {
return [this.statusId]
} else {
......@@ -96,12 +96,11 @@ const conversation = {
methods: {
fetchConversation () {
if (this.status) {
const conversationId = this.status.id
this.$store.state.api.backendInteractor.fetchConversation({id: conversationId})
this.$store.state.api.backendInteractor.fetchConversation({id: this.status.id})
.then(({ancestors, descendants}) => {
this.$store.dispatch('addNewStatuses', { statuses: ancestors })
this.$store.dispatch('addNewStatuses', { statuses: descendants })
set(this, 'relevantIds', [].concat(
set(this, 'converationStatusIds', [].concat(
ancestors.map(_ => _.id),
this.statusId,
descendants.map(_ => _.id)))
......
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