aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings
diff options
context:
space:
mode:
authorensra <ensra@users.noreply.github.com>2018-08-20 02:59:06 +0100
committerensra <ensra@users.noreply.github.com>2018-08-20 02:59:06 +0100
commit1121f32c48d06105c976f91545ededca05b283e8 (patch)
tree72e745bdc684cd94bca53fd39f75e6c298fe8c97 /src/components/settings
parent9982376f9a316a5e4224ea44c7392b272f5549d1 (diff)
Add support for configurable CW clickthrough.
Diffstat (limited to 'src/components/settings')
-rw-r--r--src/components/settings/settings.js4
-rw-r--r--src/components/settings/settings.vue4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/components/settings/settings.js b/src/components/settings/settings.js
index 169b9080..89be1624 100644
--- a/src/components/settings/settings.js
+++ b/src/components/settings/settings.js
@@ -15,6 +15,7 @@ const settings = {
streamingLocal: this.$store.state.config.streaming,
pauseOnUnfocusedLocal: this.$store.state.config.pauseOnUnfocused,
hoverPreviewLocal: this.$store.state.config.hoverPreview,
+ expandCWLocal: this.$store.state.config.expandCW,
stopGifs: this.$store.state.config.stopGifs,
loopSilentAvailable:
// Firefox
@@ -65,6 +66,9 @@ const settings = {
value = filter(value.split('\n'), (word) => trim(word).length > 0)
this.$store.dispatch('setOption', { name: 'muteWords', value })
},
+ expandCWLocal (value) {
+ this.$store.dispatch('setOption', { name: 'expandCW', value })
+ },
stopGifs (value) {
this.$store.dispatch('setOption', { name: 'stopGifs', value })
}
diff --git a/src/components/settings/settings.vue b/src/components/settings/settings.vue
index 6b65b14b..389b2be9 100644
--- a/src/components/settings/settings.vue
+++ b/src/components/settings/settings.vue
@@ -34,6 +34,10 @@
<input type="checkbox" id="hoverPreview" v-model="hoverPreviewLocal">
<label for="hoverPreview">{{$t('settings.reply_link_preview')}}</label>
</li>
+ <li>
+ <input type="checkbox" id="expandCW" v-model="expandCWLocal">
+ <label for="expandCW">{{$t('settings.expand_cw')}}</label>
+ </li>
</ul>
</div>
<div class="setting-item">