Skip to content

Commit

Permalink
PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-livefront committed Dec 11, 2024
1 parent bf54b13 commit 3bf48d3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class ItemListingViewModel @Inject constructor(
}

is ItemListingAction.ItemClick -> {
handleItemClick(action.authCode)
handleCopyItemClick(action.authCode)
}

is ItemListingAction.DialogDismiss -> {
Expand Down Expand Up @@ -160,7 +160,7 @@ class ItemListingViewModel @Inject constructor(
sendEvent(ItemListingEvent.NavigateToAppSettings)
}

private fun handleItemClick(authCode: String) {
private fun handleCopyItemClick(authCode: String) {
clipboardManager.setText(authCode)
}

Expand Down Expand Up @@ -517,7 +517,7 @@ class ItemListingViewModel @Inject constructor(

private fun handleDropdownMenuClick(action: ItemListingAction.DropdownMenuClick) {
when (action.menuAction) {
VaultDropdownMenuAction.COPY -> handleItemClick(action.item.authCode)
VaultDropdownMenuAction.COPY -> handleCopyItemClick(action.item.authCode)
VaultDropdownMenuAction.EDIT -> handleEditItemClick(action.item.id)
VaultDropdownMenuAction.MOVE -> handleMoveToBitwardenClick(action.item.id)
VaultDropdownMenuAction.DELETE -> handleDeleteItemClick(action.item.id)
Expand Down

0 comments on commit 3bf48d3

Please sign in to comment.