Add support for configurable CW clickthrough.
This commit is contained in:
parent
9982376f9a
commit
1121f32c48
6 changed files with 55 additions and 17 deletions
|
@ -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 })
|
||||
}
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue