PM-13021: Update no item found copy for totp (#4115)

This commit is contained in:
David Perez 2024-10-21 09:00:22 -05:00 committed by GitHub
parent be0ebb9b3f
commit 36a718753d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View file

@ -201,7 +201,7 @@ fun VaultData.toViewState(
}
VaultItemListingState.ViewState.NoItems(
header = totpData
?.let { R.string.no_items_for_uri.asText(it.issuer ?: it.accountName ?: "--") }
?.let { R.string.no_items_for_vault.asText(it.issuer ?: it.accountName ?: "--") }
?: R.string.save_and_protect_your_data.asText(),
message = message,
shouldShowAddButton = shouldShowAddButton,

View file

@ -195,6 +195,7 @@
<string name="translations">Translations</string>
<string name="items_for_uri">Items for %1$s</string>
<string name="no_items_for_uri">There are no items in your vault for %1$s.</string>
<string name="no_items_for_vault">There are no items in your vault that match “%1$s”</string>
<string name="search_for_a_login_or_add_a_new_login">Search for a login or add a new login</string>
<string name="bitwarden_autofill_service_overlay">When you select an input field and see a Bitwarden auto-fill overlay, you can tap it to launch the auto-fill service.</string>
<string name="bitwarden_autofill_service_notification_content">Tap this notification to auto-fill an item from your vault.</string>

View file

@ -748,7 +748,7 @@ class VaultItemListingDataExtensionsTest {
// Totp
assertEquals(
VaultItemListingState.ViewState.NoItems(
header = R.string.no_items_for_uri.asText("issuer"),
header = R.string.no_items_for_vault.asText("issuer"),
message = R.string.search_for_a_login_or_add_a_new_login.asText(),
shouldShowAddButton = false,
buttonText = R.string.add_an_item.asText(),