aboutsummaryrefslogtreecommitdiff
path: root/src/components/quick_view_settings/quick_view_settings.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2024-04-28 17:29:17 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2024-04-28 17:29:17 +0000
commit3056017f8e35c98a7fb42162c7e3460a4ebab619 (patch)
treecf94fe937a959118d7b10528846029a1b4f0ed08 /src/components/quick_view_settings/quick_view_settings.js
parent36f2fef55ab370cc51f1ff81b419f28e2f50409b (diff)
parent64732604871f23734f5600810e165b625d15ffda (diff)
Merge branch 'eintei-port-mute-nsfw' into 'develop'
Ability to mute nsfw posts Closes #1288 See merge request pleroma/pleroma-fe!1913
Diffstat (limited to 'src/components/quick_view_settings/quick_view_settings.js')
-rw-r--r--src/components/quick_view_settings/quick_view_settings.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/quick_view_settings/quick_view_settings.js b/src/components/quick_view_settings/quick_view_settings.js
index 67aa6713..e35fd579 100644
--- a/src/components/quick_view_settings/quick_view_settings.js
+++ b/src/components/quick_view_settings/quick_view_settings.js
@@ -61,6 +61,13 @@ const QuickViewSettings = {
const value = !this.muteBotStatuses
this.$store.dispatch('setOption', { name: 'muteBotStatuses', value })
}
+ },
+ muteSensitiveStatuses: {
+ get () { return this.mergedConfig.muteSensitiveStatuses },
+ set () {
+ const value = !this.muteSensitiveStatuses
+ this.$store.dispatch('setOption', { name: 'muteSensitiveStatuses', value })
+ }
}
}
}