PM-17766 add new strings for ssh keys empty item (#4722)

This commit is contained in:
Dave Severns
2025-02-13 16:07:01 -05:00
committed by GitHub
parent 3db7b17e3a
commit 1198de2a74
3 changed files with 11 additions and 3 deletions

View File

@@ -209,7 +209,9 @@ fun VaultData.toViewState(
R.string.no_notes
}
else -> R.string.no_items
VaultItemListingState.ItemListingType.Vault.SshKey -> {
R.string.no_ssh_keys
}
}
.asText()
}
@@ -245,6 +247,10 @@ fun VaultData.toViewState(
R.string.new_note
}
VaultItemListingState.ItemListingType.Vault.SshKey -> {
R.string.new_ssh_key
}
else -> R.string.new_item
}
.asText()

View File

@@ -164,8 +164,10 @@
<string name="no_notes">There are no notes in your vault.</string>
<string name="new_note">New note</string>
<string name="new_item">New item</string>
<string name="new_ssh_key">New SSH key</string>
<string name="no_text_sends">There are no text Sends in your vault.</string>
<string name="no_file_sends">There are no file Sends in your vault.</string>
<string name="no_ssh_keys">There are no SSH keys in your vault.</string>
<string name="new_text_send">New text Send</string>
<string name="new_file_send">New file Send</string>
<string name="no_username">No Username</string>

View File

@@ -731,9 +731,9 @@ class VaultItemListingDataExtensionsTest {
// SSH keys
assertEquals(
VaultItemListingState.ViewState.NoItems(
message = R.string.no_items.asText(),
message = R.string.no_ssh_keys.asText(),
shouldShowAddButton = false,
buttonText = R.string.new_item.asText(),
buttonText = R.string.new_ssh_key.asText(),
),
vaultData.toViewState(
itemListingType = VaultItemListingState.ItemListingType.Vault.SshKey,