diff options
Diffstat (limited to 'src/models')
-rw-r--r-- | src/models/Service.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/models/Service.js b/src/models/Service.js index ae13a063d..1adb1998b 100644 --- a/src/models/Service.js +++ b/src/models/Service.js | |||
@@ -66,6 +66,8 @@ export default class Service { | |||
66 | 66 | ||
67 | @observable isDarkModeEnabled = false; | 67 | @observable isDarkModeEnabled = false; |
68 | 68 | ||
69 | @observable isProgressbarEnabled = true; | ||
70 | |||
69 | @observable darkReaderSettings = { brightness: 100, contrast: 90, sepia: 10 }; | 71 | @observable darkReaderSettings = { brightness: 100, contrast: 90, sepia: 10 }; |
70 | 72 | ||
71 | @observable spellcheckerLanguage = null; | 73 | @observable spellcheckerLanguage = null; |
@@ -155,6 +157,10 @@ export default class Service { | |||
155 | data.darkReaderSettings, | 157 | data.darkReaderSettings, |
156 | this.darkReaderSettings, | 158 | this.darkReaderSettings, |
157 | ); | 159 | ); |
160 | this.isProgressbarEnabled = ifUndefinedBoolean( | ||
161 | data.isProgressbarEnabled, | ||
162 | this.isProgressbarEnabled, | ||
163 | ); | ||
158 | this.hasCustomUploadedIcon = ifUndefinedBoolean( | 164 | this.hasCustomUploadedIcon = ifUndefinedBoolean( |
159 | data.hasCustomIcon, | 165 | data.hasCustomIcon, |
160 | this.hasCustomUploadedIcon, | 166 | this.hasCustomUploadedIcon, |
@@ -210,6 +216,7 @@ export default class Service { | |||
210 | id: this.id, | 216 | id: this.id, |
211 | spellcheckerLanguage: this.spellcheckerLanguage, | 217 | spellcheckerLanguage: this.spellcheckerLanguage, |
212 | isDarkModeEnabled: this.isDarkModeEnabled, | 218 | isDarkModeEnabled: this.isDarkModeEnabled, |
219 | isProgressbarEnabled: this.isProgressbarEnabled, | ||
213 | darkReaderSettings: this.darkReaderSettings, | 220 | darkReaderSettings: this.darkReaderSettings, |
214 | team: this.team, | 221 | team: this.team, |
215 | url: this.url, | 222 | url: this.url, |