Fixed "stage" and "unstage" not showing an error if failed

This commit is contained in:
Abdelilah El Aissaoui 2022-09-09 22:26:48 +02:00
parent 4c6b45537b
commit fd98fcfd05

View file

@ -79,12 +79,14 @@ class StatusViewModel @Inject constructor(
fun stage(statusEntry: StatusEntry) = tabState.runOperation(
refreshType = RefreshType.UNCOMMITED_CHANGES,
showError = true,
) { git ->
stageEntryUseCase(git, statusEntry)
}
fun unstage(statusEntry: StatusEntry) = tabState.runOperation(
refreshType = RefreshType.UNCOMMITED_CHANGES,
showError = true,
) { git ->
unstageEntryUseCase(git, statusEntry)
}