diff options
| author | kaniini <nenolod@gmail.com> | 2018-08-20 02:51:20 +0000 |
|---|---|---|
| committer | kaniini <nenolod@gmail.com> | 2018-08-20 02:51:20 +0000 |
| commit | 4ba4772e921ce0600e62e116bbc8e68686e51f32 (patch) | |
| tree | c2bff1c7dfe6031728acbd42e2995c329cd829ea /src/main.js | |
| parent | 9982376f9a316a5e4224ea44c7392b272f5549d1 (diff) | |
| parent | 3ec8e43a9704b2945d58395dba997adfa2106df5 (diff) | |
Merge branch 'cw-clickthrough' into 'develop'
Add support for configurable CW clickthrough
See merge request pleroma/pleroma-fe!310
Diffstat (limited to 'src/main.js')
| -rw-r--r-- | src/main.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.js b/src/main.js index df271ce3..06f8a6ec 100644 --- a/src/main.js +++ b/src/main.js @@ -45,6 +45,7 @@ Vue.use(VueChatScroll) const persistedStateOptions = { paths: [ + 'config.collapseMessageWithSubject', 'config.hideAttachments', 'config.hideAttachmentsInConv', 'config.hideNsfw', @@ -95,7 +96,7 @@ window.fetch('/api/statusnet/config.json') window.fetch('/static/config.json') .then((res) => res.json()) .then((data) => { - const {theme, background, logo, showWhoToFollowPanel, whoToFollowProvider, whoToFollowLink, showInstanceSpecificPanel, scopeOptionsEnabled} = data + const {theme, background, logo, showWhoToFollowPanel, whoToFollowProvider, whoToFollowLink, showInstanceSpecificPanel, scopeOptionsEnabled, collapseMessageWithSubject} = data store.dispatch('setOption', { name: 'theme', value: theme }) store.dispatch('setOption', { name: 'background', value: background }) store.dispatch('setOption', { name: 'logo', value: logo }) @@ -104,6 +105,7 @@ window.fetch('/static/config.json') store.dispatch('setOption', { name: 'whoToFollowLink', value: whoToFollowLink }) store.dispatch('setOption', { name: 'showInstanceSpecificPanel', value: showInstanceSpecificPanel }) store.dispatch('setOption', { name: 'scopeOptionsEnabled', value: scopeOptionsEnabled }) + store.dispatch('setOption', { name: 'collapseMessageWithSubject', value: collapseMessageWithSubject }) if (data['chatDisabled']) { store.dispatch('disableChat') } |
