Added loading screen when deleting branch from side panel

This commit is contained in:
Abdelilah El Aissaoui 2023-09-11 20:54:59 +02:00
parent 39b2a7e8b9
commit 60e67d9683
No known key found for this signature in database
GPG Key ID: 7587FC860F594869
2 changed files with 4 additions and 2 deletions

View File

@ -437,8 +437,8 @@ class LogViewModel @Inject constructor(
fun deleteRemoteBranch(branch: Ref) = tabState.safeProcessing(
refreshType = RefreshType.ALL_DATA,
title = "Delete remote branch",
subtitle = "Deleting remote branch ${branch.simpleName}",
title = "Deleting remote branch",
subtitle = "Remote branch ${branch.simpleName} will be deleted from the remote",
) { git ->
deleteRemoteBranchUseCase(git, branch)
}

View File

@ -94,6 +94,8 @@ class RemotesViewModel @AssistedInject constructor(
fun deleteRemoteBranch(ref: Ref) = tabState.safeProcessing(
refreshType = RefreshType.ALL_DATA,
title = "Deleting remote branch",
subtitle = "Remote branch ${ref.simpleName} will be deleted from the remote",
) { git ->
deleteRemoteBranchUseCase(git, ref)
}