Fixed delete tag calling wrong use case
This commit is contained in:
parent
df684a0a94
commit
ea4572b91b
@ -5,6 +5,7 @@ import com.jetpackduba.gitnuro.extensions.simpleName
|
||||
import com.jetpackduba.gitnuro.git.RefreshType
|
||||
import com.jetpackduba.gitnuro.git.TabState
|
||||
import com.jetpackduba.gitnuro.git.branches.CheckoutRefUseCase
|
||||
import com.jetpackduba.gitnuro.git.tags.DeleteTagUseCase
|
||||
import com.jetpackduba.gitnuro.models.positiveNotification
|
||||
import kotlinx.coroutines.Job
|
||||
import org.eclipse.jgit.lib.Ref
|
||||
@ -15,7 +16,7 @@ interface ISharedTagsViewModel {
|
||||
}
|
||||
|
||||
class SharedTagsViewModel @Inject constructor(
|
||||
private val deleteTagUseCase: CheckoutRefUseCase,
|
||||
private val deleteTagUseCase: DeleteTagUseCase,
|
||||
private val tabState: TabState,
|
||||
) : ISharedTagsViewModel {
|
||||
override fun deleteTag(tag: Ref) = tabState.safeProcessing(
|
||||
|
Loading…
Reference in New Issue
Block a user