Filter out Card / Identity types from Add Item type list (#380)

This commit is contained in:
Brian Yencho 2023-12-12 17:35:43 -06:00 committed by Álison Fernandes
parent 0148512bf8
commit f0bd9f54d6

View file

@ -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(