mirror of
git://jb55.com/damus
synced 2024-09-30 17:00:43 +00:00
Hide Recommended Relays Section if Empty
Closes: #293 Changelog-Changed: Hide Recommended Relays Section if Empty
This commit is contained in:
parent
5a32a384c4
commit
45e64dc42c
@ -70,9 +70,11 @@ struct ConfigView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Section(NSLocalizedString("Recommended Relays", comment: "Section title for recommend relay servers that could be added as part of configuration")) {
|
if recommended.count > 0 {
|
||||||
List(recommended, id: \.url) { r in
|
Section(NSLocalizedString("Recommended Relays", comment: "Section title for recommend relay servers that could be added as part of configuration")) {
|
||||||
RecommendedRelayView(damus: state, relay: r.url.absoluteString)
|
List(recommended, id: \.url) { r in
|
||||||
|
RecommendedRelayView(damus: state, relay: r.url.absoluteString)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user