aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings/settings.js
diff options
context:
space:
mode:
authorShpuld Shpuldson <shpuld@gmail.com>2017-06-03 18:51:55 +0300
committerShpuld Shpuldson <shpuld@gmail.com>2017-06-03 18:51:55 +0300
commit65646c5a125126bca97b0f5bf5f43c9544fd2cb2 (patch)
tree7a8ea99e41d3d59a3e692f6b53419addbc3b8eaa /src/components/settings/settings.js
parente901e064de8f961450129013978ca72666a7e7e8 (diff)
Add an option to initiate fetching older statuses automatically when scrolled 750 pixels or less from the bottom.
Diffstat (limited to 'src/components/settings/settings.js')
-rw-r--r--src/components/settings/settings.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/settings/settings.js b/src/components/settings/settings.js
index 4d0528b6..cfceedde 100644
--- a/src/components/settings/settings.js
+++ b/src/components/settings/settings.js
@@ -7,6 +7,7 @@ const settings = {
hideAttachmentsLocal: this.$store.state.config.hideAttachments,
hideAttachmentsInConvLocal: this.$store.state.config.hideAttachmentsInConv,
hideNsfwLocal: this.$store.state.config.hideNsfw,
+ autoLoadLocal: this.$store.state.config.autoLoad,
muteWordsString: this.$store.state.config.muteWords.join('\n')
}
},
@@ -23,6 +24,9 @@ const settings = {
hideNsfwLocal (value) {
this.$store.dispatch('setOption', { name: 'hideNsfw', value })
},
+ autoLoadLocal (value) {
+ this.$store.dispatch('setOption', { name: 'autoLoad', value })
+ },
muteWordsString (value) {
value = filter(value.split('\n'), (word) => trim(word).length > 0)
this.$store.dispatch('setOption', { name: 'muteWords', value })