kopia lustrzana https://github.com/nextcloud/social
IMPROVEMENT: In single-post timeline, automaticaly hide the composer when
clicking its close ('x') icon. Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>pull/793/head
rodzic
265c2686a2
commit
d8792993d4
|
@ -39,7 +39,7 @@
|
|||
<span>In reply to</span>
|
||||
<actor-avatar :actor="replyTo.actor_info" :size="16" />
|
||||
<strong>{{ replyTo.actor_info.account }}</strong>
|
||||
<a class="icon-close" @click="replyTo=null" />
|
||||
<a class="icon-close" @click="closeReply()" />
|
||||
</p>
|
||||
<div class="reply-to-preview">
|
||||
{{ replyTo.content }}
|
||||
|
@ -830,6 +830,11 @@ export default {
|
|||
})
|
||||
|
||||
},
|
||||
closeReply() {
|
||||
this.replyTo = null
|
||||
// View may want to hide the composer
|
||||
this.$store.commit('setComposerDisplayStatus', false)
|
||||
},
|
||||
remoteSearchAccounts(text) {
|
||||
return axios.get(generateUrl('apps/social/api/v1/global/accounts/search?search=' + text))
|
||||
},
|
||||
|
|
|
@ -48,7 +48,8 @@ const state = {
|
|||
*/
|
||||
params: {},
|
||||
account: '',
|
||||
/* Tells whether the composer should be displayed or not
|
||||
/* Tells whether the composer should be displayed or not.
|
||||
* It's up to the view to honor this status or not.
|
||||
* @member {boolean}
|
||||
*/
|
||||
composerDisplayStatus: false
|
||||
|
|
Ładowanie…
Reference in New Issue