PM-18421 Remove adding a folder option from within folder view. (#4747)

This commit is contained in:
Dave Severns
2025-02-19 12:55:54 -05:00
committed by GitHub
parent 65cc0a0dd8
commit 1349165156
3 changed files with 12 additions and 3 deletions

View File

@@ -610,7 +610,10 @@ class VaultItemListingViewModel @Inject constructor(
mutableStateFlow.update { mutableStateFlow.update {
it.copy( it.copy(
dialogState = VaultItemListingState.DialogState.VaultItemTypeSelection( dialogState = VaultItemListingState.DialogState.VaultItemTypeSelection(
excludedOptions = persistentListOfNotNull(CreateVaultItemType.SSH_KEY), excludedOptions = persistentListOfNotNull(
CreateVaultItemType.SSH_KEY,
CreateVaultItemType.FOLDER,
),
), ),
) )
} }

View File

@@ -2160,7 +2160,10 @@ class VaultItemListingScreenTest : BaseComposeTest() {
mutableStateFlow.update { mutableStateFlow.update {
it.copy( it.copy(
dialogState = VaultItemListingState.DialogState.VaultItemTypeSelection( dialogState = VaultItemListingState.DialogState.VaultItemTypeSelection(
excludedOptions = persistentListOf(CreateVaultItemType.SSH_KEY), excludedOptions = persistentListOf(
CreateVaultItemType.SSH_KEY,
CreateVaultItemType.FOLDER,
),
), ),
) )
} }

View File

@@ -979,7 +979,10 @@ class VaultItemListingViewModelTest : BaseViewModelTest() {
folderId = "id", folderId = "id",
), ),
dialogState = VaultItemListingState.DialogState.VaultItemTypeSelection( dialogState = VaultItemListingState.DialogState.VaultItemTypeSelection(
excludedOptions = persistentListOf(CreateVaultItemType.SSH_KEY), excludedOptions = persistentListOf(
CreateVaultItemType.SSH_KEY,
CreateVaultItemType.FOLDER,
),
), ),
), ),
viewModel.stateFlow.value, viewModel.stateFlow.value,