updates
This commit is contained in:
@@ -55,6 +55,27 @@ struct MonitorMenuView: View {
|
||||
ScrollView {
|
||||
LazyVStack(alignment: .leading, spacing: 0) {
|
||||
if let report = monitor.report {
|
||||
if !monitor.selectedServices.isEmpty {
|
||||
Text("SERVICES")
|
||||
.font(.caption.bold()).foregroundStyle(.secondary)
|
||||
.padding(.horizontal, 14).padding(.vertical, 8)
|
||||
ForEach(monitor.selectedServices) { service in
|
||||
HStack(spacing: 8) {
|
||||
Image(systemName: service.symbol).foregroundStyle(service.color)
|
||||
Text(service.name).font(.system(size: 12))
|
||||
Spacer()
|
||||
if selected.requiredServices.contains(service.name) {
|
||||
Text("REQUIRED").font(.system(size: 9, weight: .bold)).foregroundStyle(.orange)
|
||||
}
|
||||
Text(service.title).font(.caption).foregroundStyle(.secondary)
|
||||
}
|
||||
.padding(.horizontal, 14).padding(.vertical, 5)
|
||||
}
|
||||
Divider()
|
||||
Text("HEALTH GROUPS")
|
||||
.font(.caption.bold()).foregroundStyle(.secondary)
|
||||
.padding(.horizontal, 14).padding(.vertical, 8)
|
||||
}
|
||||
ForEach(report.groups) { group in
|
||||
HStack {
|
||||
Text(group.name).font(.system(size: 12, weight: .medium))
|
||||
|
||||
Reference in New Issue
Block a user