@@ -81,9 +81,9 @@ class SettingsForm extends mix(PageForm).with(
81
81
82
82
this . setData ( {
83
83
theme : ClientSettings . getTheme ( ) ,
84
- disable_effects : ClientSettings . isEffectsDisabled ( ) ,
85
84
mobile_screen_mode : ClientSettings . getMobileScreenMode ( ) ,
86
- scaling_factor : ClientSettings . getScalingFactor ( )
85
+ scaling_factor : ClientSettings . getScalingFactor ( ) ,
86
+ disable_effects : ClientSettings . isEffectsDisabled ( )
87
87
} )
88
88
}
89
89
@@ -337,7 +337,7 @@ class SettingsForm extends mix(PageForm).with(
337
337
} , this )
338
338
339
339
if ( willReconnect ) {
340
- logger . debug ( ` device will reconnect` )
340
+ logger . debug ( ' device will reconnect' )
341
341
}
342
342
343
343
let promise = Promise . resolve ( )
@@ -360,7 +360,7 @@ class SettingsForm extends mix(PageForm).with(
360
360
361
361
return DevicesAPI . patchDevice ( newAttrs ) . then ( function ( ) {
362
362
363
- logger . debug ( ` device attributes successfully updated` )
363
+ logger . debug ( ' device attributes successfully updated' )
364
364
Toast . info ( gettext ( 'Device has been updated.' ) )
365
365
366
366
if ( 'admin_password' in newAttrs && AuthAPI . getUsername ( ) === 'admin' ) {
@@ -389,15 +389,15 @@ class SettingsForm extends mix(PageForm).with(
389
389
if ( changedFieldsData [ 'theme' ] != null ) {
390
390
ClientSettings . setTheme ( changedFieldsData [ 'theme' ] )
391
391
}
392
- if ( changedFieldsData [ 'disable_effects' ] != null ) {
393
- ClientSettings . setEffectsDisabled ( changedFieldsData [ 'disable_effects' ] )
394
- }
395
392
if ( changedFieldsData [ 'mobile_screen_mode' ] != null ) {
396
393
ClientSettings . setMobileScreenMode ( changedFieldsData [ 'mobile_screen_mode' ] )
397
394
}
398
395
if ( changedFieldsData [ 'scaling_factor' ] != null ) {
399
396
ClientSettings . setScalingFactor ( changedFieldsData [ 'scaling_factor' ] )
400
397
}
398
+ if ( changedFieldsData [ 'disable_effects' ] != null ) {
399
+ ClientSettings . setEffectsDisabled ( changedFieldsData [ 'disable_effects' ] )
400
+ }
401
401
402
402
return promise
403
403
}
0 commit comments