diff options
author | Amine <amine@mouafik.fr> | 2020-02-26 17:32:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 17:32:05 +0100 |
commit | 644878643de84e0566294b57ca40fc70d11437c4 (patch) | |
tree | 284746227df93d54595c833431e625daf8e3c7ea /src/stores | |
parent | Implement user.css and user.js (#401) (diff) | |
parent | Fix merge errors (diff) | |
download | ferdium-app-644878643de84e0566294b57ca40fc70d11437c4.tar.gz ferdium-app-644878643de84e0566294b57ca40fc70d11437c4.tar.zst ferdium-app-644878643de84e0566294b57ca40fc70d11437c4.zip |
#270 Add more navigation bar behaviour settings
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/SettingsStore.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index da63bc972..43f00b723 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js | |||
@@ -250,5 +250,25 @@ export default class SettingsStore extends Store { | |||
250 | }, | 250 | }, |
251 | }); | 251 | }); |
252 | } | 252 | } |
253 | |||
254 | if (!this.all.migration['5.4.4-beta.2-settings']) { | ||
255 | const { | ||
256 | showServiceNavigationBar, | ||
257 | } = this.all.app; | ||
258 | |||
259 | this.actions.settings.update({ | ||
260 | type: 'app', | ||
261 | data: { | ||
262 | navigationBarBehaviour: showServiceNavigationBar ? 'custom' : 'never', | ||
263 | }, | ||
264 | }); | ||
265 | |||
266 | this.actions.settings.update({ | ||
267 | type: 'migration', | ||
268 | data: { | ||
269 | '5.4.4-beta.2-settings': true, | ||
270 | }, | ||
271 | }); | ||
272 | } | ||
253 | } | 273 | } |
254 | } | 274 | } |