mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Copyable text in Node Detail
This commit is contained in:
parent
81a5a46ae2
commit
e66550a2cb
1 changed files with 3 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ struct NodeDetail: View {
|
|||
}
|
||||
Spacer()
|
||||
Text(String(node.num))
|
||||
.textSelection(.enabled)
|
||||
}
|
||||
|
||||
HStack {
|
||||
|
|
@ -52,6 +53,7 @@ struct NodeDetail: View {
|
|||
}
|
||||
Spacer()
|
||||
Text(node.user?.userId ?? "?")
|
||||
.textSelection(.enabled)
|
||||
}
|
||||
|
||||
if let dm = node.telemetries?.filtered(using: NSPredicate(format: "metricsType == 0")).lastObject as? TelemetryEntity, dm.uptimeSeconds > 0 {
|
||||
|
|
@ -69,6 +71,7 @@ struct NodeDetail: View {
|
|||
let later = now + TimeInterval(dm.uptimeSeconds)
|
||||
let uptime = (now..<later).formatted(.components(style: .narrow))
|
||||
Text(uptime)
|
||||
.textSelection(.enabled)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue