mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2025-02-09 16:28:45 +01:00
refs #1321 Open detail when quoted status is clicked
This commit is contained in:
parent
d7fba4cd43
commit
00f561e261
@ -56,7 +56,7 @@ export default {
|
||||
showReplies: state => state.TimelineSpace.Contents.Home.showReplies
|
||||
}),
|
||||
...mapGetters('TimelineSpace/Modals', ['modalOpened']),
|
||||
shortcutEnabled: function() {
|
||||
shortcutEnabled: function () {
|
||||
if (this.modalOpened) {
|
||||
return false
|
||||
}
|
||||
@ -86,7 +86,7 @@ export default {
|
||||
// If focusedId does not change, we have to refresh focusedId because Toot component watch change events.
|
||||
const previousFocusedId = this.focusedId
|
||||
this.focusedId = 0
|
||||
this.$nextTick(function() {
|
||||
this.$nextTick(function () {
|
||||
this.focusedId = previousFocusedId
|
||||
})
|
||||
})
|
||||
@ -109,14 +109,14 @@ export default {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
startReload: function(newState, oldState) {
|
||||
startReload: function (newState, oldState) {
|
||||
if (!oldState && newState) {
|
||||
this.reload().finally(() => {
|
||||
this.$store.commit('TimelineSpace/HeaderMenu/changeReload', false)
|
||||
})
|
||||
}
|
||||
},
|
||||
focusedId: function(newState, _oldState) {
|
||||
focusedId: function (newState, _oldState) {
|
||||
if (newState && this.heading) {
|
||||
this.$store.commit('TimelineSpace/Contents/Home/changeHeading', false)
|
||||
} else if (newState === null && !this.heading) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="quote">
|
||||
<div class="quote" v-on:click.stop.prevent="$emit('select')">
|
||||
<FailoverImg class="icon" :src="icon" :alt="`Avatar of ${username}`" />
|
||||
<div class="contents">
|
||||
<div class="header">
|
||||
|
@ -21,7 +21,7 @@
|
||||
"
|
||||
@shortkey="handleTootControl"
|
||||
ref="status"
|
||||
@click="$emit('selectToot')"
|
||||
@click="$emit('selectToot', message)"
|
||||
role="article"
|
||||
aria-label="toot"
|
||||
>
|
||||
@ -95,6 +95,7 @@
|
||||
:username="username(message.reblog.account)"
|
||||
:accountName="accountName(message.reblog.account)"
|
||||
:body="message.reblog.content"
|
||||
@select="openDetail(message.reblog)"
|
||||
/>
|
||||
<LinkPreview
|
||||
v-if="originalMessage.card && originalMessage.card.type === 'link'"
|
||||
|
Loading…
x
Reference in New Issue
Block a user