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
2 changes: 2 additions & 0 deletions common/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="staking_custom_blocked_warning">This validator is blocked and cannot be selected at the moment. Please, try again in the next era.</string>

<string name="common_search_no_input">Search results will appear here</string>
<string name="common_search_no_results">No search results.\nBe sure you type full account address</string>
<string name="search_results_header">Search results: %d</string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ class SearchCustomValidatorsViewModel(
}.share()

fun validatorClicked(validatorModel: ValidatorModel) {
if (validatorModel.validator.prefs!!.blocked) {
showError(resourceManager.getString(R.string.staking_custom_blocked_warning))
return
}

launch {
val newSelected = selectedValidators.first().toggle(validatorModel.validator)

Expand Down