diff options
| author | ensra <ensra@users.noreply.github.com> | 2018-08-20 03:41:40 +0100 |
|---|---|---|
| committer | ensra <ensra@users.noreply.github.com> | 2018-08-20 03:41:40 +0100 |
| commit | 3ec8e43a9704b2945d58395dba997adfa2106df5 (patch) | |
| tree | c2bff1c7dfe6031728acbd42e2995c329cd829ea /src/components/settings | |
| parent | 671db023da097c90e7a2cf67b7218bd13be51bb0 (diff) | |
Rename expandCW to collapseMessageWithSubject.
Add option to config.json, disabled by default.
Diffstat (limited to 'src/components/settings')
| -rw-r--r-- | src/components/settings/settings.js | 6 | ||||
| -rw-r--r-- | src/components/settings/settings.vue | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/components/settings/settings.js b/src/components/settings/settings.js index 89be1624..c85ef59f 100644 --- a/src/components/settings/settings.js +++ b/src/components/settings/settings.js @@ -15,7 +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, + collapseMessageWithSubjectLocal: this.$store.state.config.collapseMessageWithSubject, stopGifs: this.$store.state.config.stopGifs, loopSilentAvailable: // Firefox @@ -66,8 +66,8 @@ 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 }) + collapseMessageWithSubjectLocal (value) { + this.$store.dispatch('setOption', { name: 'collapseMessageWithSubject', 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 389b2be9..170f5773 100644 --- a/src/components/settings/settings.vue +++ b/src/components/settings/settings.vue @@ -17,6 +17,10 @@ <h2>{{$t('nav.timeline')}}</h2> <ul class="setting-list"> <li> + <input type="checkbox" id="collapseMessageWithSubject" v-model="collapseMessageWithSubjectLocal"> + <label for="collapseMessageWithSubject">{{$t('settings.collapse_subject')}}</label> + </li> + <li> <input type="checkbox" id="streaming" v-model="streamingLocal"> <label for="streaming">{{$t('settings.streaming')}}</label> <ul class="setting-list suboptions" :class="[{disabled: !streamingLocal}]"> @@ -34,10 +38,6 @@ <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"> |
