diff options
| author | lambda <pleromagit@rogerbraun.net> | 2018-12-03 14:55:43 +0000 |
|---|---|---|
| committer | lambda <pleromagit@rogerbraun.net> | 2018-12-03 14:55:43 +0000 |
| commit | 9e78eddf2ad846ee69bfef690cfe3765d1b55dcb (patch) | |
| tree | f5e674945a381ace77313557d1c2789ea1af5ce4 /src/components/settings/settings.js | |
| parent | ea28aa62f00663ab8a0e0bf64551ac15256a3242 (diff) | |
| parent | b34097a5c154cb913048a16848d0ab0d48dfe626 (diff) | |
Merge branch 'subject-line-entry-auto' into 'develop'
Added option to auto-hide subject field when it's empty.
Closes #174
See merge request pleroma/pleroma-fe!388
Diffstat (limited to 'src/components/settings/settings.js')
| -rw-r--r-- | src/components/settings/settings.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/settings/settings.js b/src/components/settings/settings.js index 910eea63..91a2014a 100644 --- a/src/components/settings/settings.js +++ b/src/components/settings/settings.js @@ -38,6 +38,10 @@ const settings = { ? instance.subjectLineBehavior : user.subjectLineBehavior, subjectLineBehaviorDefault: instance.subjectLineBehavior, + alwaysShowSubjectInputLocal: typeof user.alwaysShowSubjectInput === 'undefined' + ? instance.alwaysShowSubjectInput + : user.alwaysShowSubjectInput, + alwaysShowSubjectInputDefault: instance.alwaysShowSubjectInput, scopeCopyLocal: user.scopeCopy, scopeCopyDefault: this.$t('settings.values.' + instance.scopeCopy), stopGifs: user.stopGifs, @@ -122,6 +126,9 @@ const settings = { scopeCopyLocal (value) { this.$store.dispatch('setOption', { name: 'scopeCopy', value }) }, + alwaysShowSubjectInputLocal (value) { + this.$store.dispatch('setOption', { name: 'alwaysShowSubjectInput', value }) + }, subjectLineBehaviorLocal (value) { this.$store.dispatch('setOption', { name: 'subjectLineBehavior', value }) }, |
