Skip to content

Commit

Permalink
Close delete items popup before showing delete status popup
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-podzigun committed Jun 11, 2021
1 parent 8fdaf41 commit 28a62ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ object FileListPopups extends FunctionComponent[FileListPopupsProps] {
if (state.selectedItems.nonEmpty) state.selectedItems
else state.currentItem.toList

props.dispatch(FileListPopupDeleteAction(show = false))
val deleteAction = props.actions.deleteItems(
dispatch = props.dispatch,
isRight = state.isRight,
dir = state.currDir.path,
items = items
)
deleteAction.task.future.foreach { _ =>
props.dispatch(FileListPopupDeleteAction(show = false))
props.dispatch(props.actions.updateDir(props.dispatch, state.isRight, state.currDir.path))
}
props.dispatch(deleteAction)
Expand Down

0 comments on commit 28a62ea

Please sign in to comment.