aboutsummaryrefslogtreecommitdiff
path: root/src/components/quick_view_settings/quick_view_settings.js
diff options
context:
space:
mode:
authorAlexander Tumin <iamtakingiteasy@eientei.org>2024-02-21 21:27:12 +0300
committerHenry Jameson <me@hjkos.com>2024-04-24 15:18:11 +0300
commit59656af44cf64069437eda1708b02c7a53788941 (patch)
tree1eaaa543cd5d0509b1f0b6b58eec15ad68fe8a51 /src/components/quick_view_settings/quick_view_settings.js
parent15dde2d372419fd90c19de7a6f7b9b2458511adc (diff)
Allow muting sensitive posts in public timelines
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 })
+ }
}
}
}