mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
Filter out Card / Identity types from Add Item type list (#380)
This commit is contained in:
parent
0148512bf8
commit
f0bd9f54d6
1 changed files with 4 additions and 0 deletions
|
@ -88,6 +88,10 @@ private fun TypeOptionsItem(
|
|||
modifier: Modifier,
|
||||
) {
|
||||
val possibleMainStates = VaultAddItemState.ItemTypeOption.entries.toList()
|
||||
// TODO: Add support for Card Type items (BIT-668)
|
||||
.filterNot { it == VaultAddItemState.ItemTypeOption.CARD }
|
||||
// TODO: Add support for Identity Type items (BIT-667)
|
||||
.filterNot { it == VaultAddItemState.ItemTypeOption.IDENTITY }
|
||||
val optionsWithStrings = possibleMainStates.associateWith { stringResource(id = it.labelRes) }
|
||||
|
||||
BitwardenMultiSelectButton(
|
||||
|
|
Loading…
Reference in a new issue