@@ -104,6 +104,7 @@ interface StateProps {
104
104
helpItems : { [ key : string ] : HelpItem }
105
105
experimentalFeatures : ExperimentalFeatures
106
106
disableDialogBackdropClose : boolean
107
+ disableAnimations : boolean
107
108
}
108
109
109
110
// function to load the new key or fallback to the old one
@@ -211,7 +212,8 @@ class GlobalState extends PureComponent<Props> {
211
212
disableDialogBackdropClose : configStore . get (
212
213
'disableDialogBackdropClose' ,
213
214
false
214
- )
215
+ ) ,
216
+ disableAnimations : configStore . get ( 'disableAnimations' , false )
215
217
}
216
218
217
219
setCurrentCustomCategories = ( newCustomCategories : string [ ] ) => {
@@ -275,6 +277,11 @@ class GlobalState extends PureComponent<Props> {
275
277
this . setState ( { disableDialogBackdropClose : value } )
276
278
}
277
279
280
+ setDisableAnimations = ( value : boolean ) => {
281
+ configStore . set ( 'disableAnimations' , value )
282
+ this . setState ( { disableAnimations : value } )
283
+ }
284
+
278
285
setSideBarCollapsed = ( value : boolean ) => {
279
286
this . setState ( { sidebarCollapsed : value } )
280
287
}
@@ -1045,7 +1052,9 @@ class GlobalState extends PureComponent<Props> {
1045
1052
addHelpItem : this . addHelpItem ,
1046
1053
removeHelpItem : this . removeHelpItem
1047
1054
} ,
1048
- setDisableDialogBackdropClose : this . setDisableDialogBackdropClose
1055
+ setDisableDialogBackdropClose : this . setDisableDialogBackdropClose ,
1056
+ disableAnimations : this . state . disableAnimations ,
1057
+ setDisableAnimations : this . setDisableAnimations
1049
1058
} }
1050
1059
>
1051
1060
{ this . props . children }
0 commit comments