Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,14 @@ class ReviewExportViewModel @Inject constructor(
}

private fun handleVaultDataLoading() {
showLoadingDialog()
showLoadingDialog(BitwardenString.loading_vault_data.asText())
}

private fun handleVaultDataLoaded(data: DataState.Loaded<DecryptCipherListResult>) {
updateItemTypeCounts(data = data, clearDialog = true)
}

private fun handleVaultDataPending(data: DataState.Pending<DecryptCipherListResult>) {
showLoadingDialog()
updateItemTypeCounts(data = data, clearDialog = false)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ class ReviewExportViewModelTest : BaseViewModelTest() {
}

@Test
fun `VaultDataReceive Pending should show loading dialog and update item type counts`() =
fun `VaultDataReceive Pending should update item type counts`() =
runTest {
val viewModel = createViewModel()
viewModel.trySendAction(
Expand All @@ -314,9 +314,6 @@ class ReviewExportViewModelTest : BaseViewModelTest() {
passwordCount = 1,
),
),
dialog = ReviewExportState.DialogState.Loading(
BitwardenString.loading.asText(),
),
)

assertEquals(expectedState, viewModel.stateFlow.value)
Expand Down
1 change: 1 addition & 0 deletions ui/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1140,4 +1140,5 @@ Do you want to switch to this account?</string>
<string name="enter_the_6_digit_code_that_was_emailed_to_the_address_below">Enter the 6-digit code that was emailed to the address below</string>
<string name="lock_app">Lock app</string>
<string name="use_your_devices_lock_method_to_unlock_the_app">Use your device’s lock method to unlock the app</string>
<string name="loading_vault_data">Loading vault data…</string>
</resources>
Loading