File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
java/com/x8bit/bitwarden/ui/vault/feature/importlogins
test/java/com/x8bit/bitwarden/ui/vault/feature/importlogins Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,8 @@ class ImportLoginsViewModel @Inject constructor(
132
132
it.copy(
133
133
isVaultSyncing = false ,
134
134
dialogState = ImportLoginsState .DialogState .Error (
135
- R .string.no_logins_were_imported.asText(),
135
+ message = R .string.no_logins_were_imported.asText(),
136
+ title = R .string.import_error.asText(),
136
137
),
137
138
)
138
139
}
@@ -259,9 +260,8 @@ data class ImportLoginsState(
259
260
*/
260
261
data class Error (
261
262
override val message : Text = R .string.generic_error_message.asText(),
262
- ) : DialogState() {
263
- override val title: Text ? = null
264
- }
263
+ override val title : Text ? = null ,
264
+ ) : DialogState()
265
265
}
266
266
267
267
/* *
Original file line number Diff line number Diff line change @@ -1074,6 +1074,7 @@ Do you want to switch to this account?</string>
1074
1074
<string name =" bitwarden_tools" >Bitwarden Tools</string >
1075
1075
<string name =" got_it" >Got it</string >
1076
1076
<string name =" no_logins_were_imported" >No logins were imported</string >
1077
+ <string name =" import_error" >Import error</string >
1077
1078
<string name =" verified_sso_domain_verified" >Verified SSO Domain Endpoint</string >
1078
1079
<string name =" logins_imported" >Logins imported</string >
1079
1080
<string name =" remember_to_delete_your_imported_password_file_from_your_computer" >Remember to delete your imported password file from your computer</string >
Original file line number Diff line number Diff line change @@ -419,7 +419,10 @@ class ImportLoginsViewModelTest : BaseViewModelTest() {
419
419
)
420
420
assertEquals(
421
421
ImportLoginsState (
422
- dialogState = ImportLoginsState .DialogState .Error (R .string.no_logins_were_imported.asText()),
422
+ dialogState = ImportLoginsState .DialogState .Error (
423
+ message = R .string.no_logins_were_imported.asText(),
424
+ title = R .string.import_error.asText(),
425
+ ),
423
426
viewState = ImportLoginsState .ViewState .InitialContent ,
424
427
isVaultSyncing = false ,
425
428
showBottomSheet = false ,
You can’t perform that action at this time.
0 commit comments