|
|
@ -133,6 +133,7 @@ const Status = {
|
|
|
|
'showPinned',
|
|
|
|
'showPinned',
|
|
|
|
'inProfile',
|
|
|
|
'inProfile',
|
|
|
|
'profileUserId',
|
|
|
|
'profileUserId',
|
|
|
|
|
|
|
|
'inQuote',
|
|
|
|
|
|
|
|
|
|
|
|
'simpleTree',
|
|
|
|
'simpleTree',
|
|
|
|
'controlledThreadDisplayStatus',
|
|
|
|
'controlledThreadDisplayStatus',
|
|
|
@ -159,7 +160,8 @@ const Status = {
|
|
|
|
uncontrolledMediaPlaying: [],
|
|
|
|
uncontrolledMediaPlaying: [],
|
|
|
|
suspendable: true,
|
|
|
|
suspendable: true,
|
|
|
|
error: null,
|
|
|
|
error: null,
|
|
|
|
headTailLinks: null
|
|
|
|
headTailLinks: null,
|
|
|
|
|
|
|
|
displayQuote: !this.inQuote
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
computed: {
|
|
|
@ -402,8 +404,17 @@ const Status = {
|
|
|
|
editingAvailable () {
|
|
|
|
editingAvailable () {
|
|
|
|
return this.$store.state.instance.editingAvailable
|
|
|
|
return this.$store.state.instance.editingAvailable
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
hasVisibleQuote () {
|
|
|
|
|
|
|
|
return this.status.quote_url && this.status.quote_visible
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
hasInvisibleQuote () {
|
|
|
|
|
|
|
|
return this.status.quote_url && !this.status.quote_visible
|
|
|
|
|
|
|
|
},
|
|
|
|
quotedStatus () {
|
|
|
|
quotedStatus () {
|
|
|
|
return this.status.quote_id ? this.$store.state.statuses.allStatusesObject[this.status.quote_id] : undefined
|
|
|
|
return this.status.quote_id ? this.$store.state.statuses.allStatusesObject[this.status.quote_id] : undefined
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
shouldDisplayQuote () {
|
|
|
|
|
|
|
|
return this.quotedStatus && this.displayQuote
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
@ -472,6 +483,18 @@ const Status = {
|
|
|
|
window.scrollBy(0, rect.bottom - window.innerHeight + 50)
|
|
|
|
window.scrollBy(0, rect.bottom - window.innerHeight + 50)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
toggleDisplayQuote () {
|
|
|
|
|
|
|
|
if (this.shouldDisplayQuote) {
|
|
|
|
|
|
|
|
this.displayQuote = false
|
|
|
|
|
|
|
|
} else if (!this.quotedStatus) {
|
|
|
|
|
|
|
|
this.$store.dispatch('fetchStatus', this.status.quote_id)
|
|
|
|
|
|
|
|
.then(() => {
|
|
|
|
|
|
|
|
this.displayQuote = true
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.displayQuote = true
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
|