diff options
| author | Henry <spam@hjkos.com> | 2018-11-26 01:50:54 +0000 |
|---|---|---|
| committer | Henry <spam@hjkos.com> | 2018-11-26 01:50:54 +0000 |
| commit | 91272dc5558e1326dac872f927dc8da7f9109cd0 (patch) | |
| tree | 42b479fa25d0fe4c39401f9759e2f35323f86b61 /src/components/settings/settings.js | |
| parent | f1a23f2b6edb0858890c82cf42c8b6d835102d56 (diff) | |
| parent | b948234aec2ec1d140a46303c09d24424262bd66 (diff) | |
Merge branch 'feature/scope_preferences' into 'develop'
Make visibility copying and subject copying configurable
Closes #135
See merge request pleroma/pleroma-fe!353
Diffstat (limited to 'src/components/settings/settings.js')
| -rw-r--r-- | src/components/settings/settings.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/settings/settings.js b/src/components/settings/settings.js index 67110841..910eea63 100644 --- a/src/components/settings/settings.js +++ b/src/components/settings/settings.js @@ -34,6 +34,12 @@ const settings = { ? instance.collapseMessageWithSubject : user.collapseMessageWithSubject, collapseMessageWithSubjectDefault: this.$t('settings.values.' + instance.collapseMessageWithSubject), + subjectLineBehaviorLocal: typeof user.subjectLineBehavior === 'undefined' + ? instance.subjectLineBehavior + : user.subjectLineBehavior, + subjectLineBehaviorDefault: instance.subjectLineBehavior, + scopeCopyLocal: user.scopeCopy, + scopeCopyDefault: this.$t('settings.values.' + instance.scopeCopy), stopGifs: user.stopGifs, loopSilentAvailable: // Firefox @@ -113,6 +119,12 @@ const settings = { collapseMessageWithSubjectLocal (value) { this.$store.dispatch('setOption', { name: 'collapseMessageWithSubject', value }) }, + scopeCopyLocal (value) { + this.$store.dispatch('setOption', { name: 'scopeCopy', value }) + }, + subjectLineBehaviorLocal (value) { + this.$store.dispatch('setOption', { name: 'subjectLineBehavior', value }) + }, stopGifs (value) { this.$store.dispatch('setOption', { name: 'stopGifs', value }) } |
