@@ -104,6 +104,7 @@ interface StateProps {
104104 helpItems : { [ key : string ] : HelpItem }
105105 experimentalFeatures : ExperimentalFeatures
106106 disableDialogBackdropClose : boolean
107+ disableAnimations : boolean
107108}
108109
109110// function to load the new key or fallback to the old one
@@ -211,7 +212,8 @@ class GlobalState extends PureComponent<Props> {
211212 disableDialogBackdropClose : configStore . get (
212213 'disableDialogBackdropClose' ,
213214 false
214- )
215+ ) ,
216+ disableAnimations : configStore . get ( 'disableAnimations' , false )
215217 }
216218
217219 setCurrentCustomCategories = ( newCustomCategories : string [ ] ) => {
@@ -275,6 +277,11 @@ class GlobalState extends PureComponent<Props> {
275277 this . setState ( { disableDialogBackdropClose : value } )
276278 }
277279
280+ setDisableAnimations = ( value : boolean ) => {
281+ configStore . set ( 'disableAnimations' , value )
282+ this . setState ( { disableAnimations : value } )
283+ }
284+
278285 setSideBarCollapsed = ( value : boolean ) => {
279286 this . setState ( { sidebarCollapsed : value } )
280287 }
@@ -1045,7 +1052,9 @@ class GlobalState extends PureComponent<Props> {
10451052 addHelpItem : this . addHelpItem ,
10461053 removeHelpItem : this . removeHelpItem
10471054 } ,
1048- setDisableDialogBackdropClose : this . setDisableDialogBackdropClose
1055+ setDisableDialogBackdropClose : this . setDisableDialogBackdropClose ,
1056+ disableAnimations : this . state . disableAnimations ,
1057+ setDisableAnimations : this . setDisableAnimations
10491058 } }
10501059 >
10511060 { this . props . children }
0 commit comments