mirror of
https://github.com/bitwarden/android.git
synced 2026-03-21 22:00:42 -05:00
PM-17766 add new strings for ssh keys empty item (#4722)
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user