Merge pull request #109 from meshtastic/feature/user_settings

Clean up module config preview
This commit is contained in:
Garth Vander Houwen 2022-07-01 19:05:42 -07:00 committed by GitHub
commit 3b9b17db71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 12 deletions

View file

@ -1,8 +0,0 @@
//
// InputBrokerConfig.swift
// Meshtastic
//
// Created by Garth Vander Houwen on 6/28/22.
//
import Foundation

View file

@ -80,8 +80,9 @@ struct RangeTestConfig: View {
Label("Save", systemImage: "square.and.arrow.down.fill")
}
.toggleStyle(SwitchToggleStyle(tint: .accentColor))
.disabled(!(node.myInfo?.hasWifi ?? false))
Text("Saves a CSV with the range test message details, only available on ESP32 devices with a web server.")
Text("Saves a CSV with the range test message details, currently only available on ESP32 devices with a web server.")
.font(.caption)
}
}

View file

@ -144,7 +144,7 @@ struct Settings: View {
Image(systemName: "point.3.connected.trianglepath.dotted")
.symbolRenderingMode(.hierarchical)
Text("Range Test (ESP32 Only)")
Text("Range Test")
}
.disabled(bleManager.connectedPeripheral == nil)
//nodes.first(where: { $0.num == connectedNodeNum })?.myInfo?.hasWifi ?? true)//||
@ -159,7 +159,7 @@ struct Settings: View {
Text("Serial")
}
.disabled(false)
.disabled(bleManager.connectedPeripheral == nil)
NavigationLink {
@ -171,7 +171,7 @@ struct Settings: View {
Text("Telemetry (Sensors)")
}
.disabled(false)
.disabled(bleManager.connectedPeripheral == nil)
}
// Not Implemented:
// Store Forward Config - Not Working, TBEAM Only