File tree Expand file tree Collapse file tree
src/components/Search/SearchList/ListItem/ActionCell Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ function ActionCell({
8080
8181 const text = translate ( actionTranslationsMap [ action ] ) ;
8282
83+ const shouldBeDisabledOffline = action !== CONST . SEARCH . ACTION_TYPES . UNDELETE && isOffline ;
8384 const buttonInnerStyles = isSelected && action === CONST . SEARCH . ACTION_TYPES . UNDELETE ? styles . buttonDefaultSelected : { } ;
8485
8586 return (
@@ -91,7 +92,7 @@ function ActionCell({
9192 style = { [ styles . w100 , shouldDisablePointerEvents && styles . pointerEventsNone ] }
9293 isLoading = { isLoading }
9394 success = { action !== CONST . SEARCH . ACTION_TYPES . UNDELETE }
94- isDisabled = { isOffline || shouldDisablePointerEvents }
95+ isDisabled = { shouldBeDisabledOffline || shouldDisablePointerEvents }
9596 shouldStayNormalOnDisable = { shouldDisablePointerEvents }
9697 innerStyles = { buttonInnerStyles }
9798 isNested
You can’t perform that action at this time.
0 commit comments