Add option to hide filtered statuses
This commit is contained in:
parent
fbdb7d3d95
commit
10c7365451
|
@ -115,6 +115,9 @@ const Status = {
|
||||||
? this.$store.state.instance.hideFilteredStatuses
|
? this.$store.state.instance.hideFilteredStatuses
|
||||||
: this.$store.state.config.hideFilteredStatuses
|
: this.$store.state.config.hideFilteredStatuses
|
||||||
},
|
},
|
||||||
|
hideStatus () {
|
||||||
|
return (!this.hideReply && !this.deleted) && !(this.muted && this.hideFilteredStatuses)
|
||||||
|
},
|
||||||
isFocused () {
|
isFocused () {
|
||||||
// retweet or root of an expanded conversation
|
// retweet or root of an expanded conversation
|
||||||
if (this.focused) {
|
if (this.focused) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="status-el" v-if="(!hideReply && !deleted) && !(muted && hideFilteredStatuses)" :class="[{ 'status-el_focused': isFocused }, { 'status-conversation': inlineExpanded }]">
|
<div class="status-el" v-if="hideStatus" :class="[{ 'status-el_focused': isFocused }, { 'status-conversation': inlineExpanded }]">
|
||||||
<template v-if="muted && !noReplyLinks">
|
<template v-if="muted && !noReplyLinks">
|
||||||
<div class="media status container muted">
|
<div class="media status container muted">
|
||||||
<small>
|
<small>
|
||||||
|
|
Loading…
Reference in New Issue