mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
unmessagable display on node list and details
This commit is contained in:
parent
d40a4f0942
commit
9050bf9523
3 changed files with 21 additions and 0 deletions
|
|
@ -32899,6 +32899,9 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Unmonitored or Infrastructure" : {
|
||||
|
||||
},
|
||||
"Unset" : {
|
||||
"localizations" : {
|
||||
|
|
|
|||
|
|
@ -151,6 +151,19 @@ struct NodeDetail: View {
|
|||
}
|
||||
.accessibilityElement(children: .combine)
|
||||
}
|
||||
if node.user?.unmessagable ?? false {
|
||||
HStack {
|
||||
Label {
|
||||
Text("")
|
||||
} icon: {
|
||||
Image(systemName: "iphone.slash")
|
||||
.symbolRenderingMode(.multicolor)
|
||||
}
|
||||
Spacer()
|
||||
Text("Unmonitored or Infrastructure")
|
||||
}
|
||||
.accessibilityElement(children: .combine)
|
||||
}
|
||||
|
||||
if let dm = node.telemetries?.filtered(using: NSPredicate(format: "metricsType == 0")).lastObject as? TelemetryEntity, let uptimeSeconds = dm.uptimeSeconds {
|
||||
HStack {
|
||||
|
|
|
|||
|
|
@ -172,6 +172,11 @@ struct NodeListItem: View {
|
|||
let role = DeviceRoles(rawValue: Int(node.user?.role ?? 0))
|
||||
IconAndText(systemName: role?.systemName ?? "figure",
|
||||
text: "Role: \(role?.name ?? "Unknown".localized)")
|
||||
if node.user?.unmessagable ?? false {
|
||||
IconAndText(systemName: "iphone.slash",
|
||||
renderingMode: .multicolor,
|
||||
text: "Unmonitored")
|
||||
}
|
||||
if node.isStoreForwardRouter {
|
||||
IconAndText(systemName: "envelope.arrow.triangle.branch",
|
||||
renderingMode: .multicolor,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue