mirror of
https://github.com/kean/Pulse.git
synced 2026-05-30 21:07:33 +00:00
Update warnings
This commit is contained in:
@@ -119,9 +119,6 @@ private struct _ConsoleRegularContentView: View {
|
||||
} else {
|
||||
toolbar
|
||||
}
|
||||
|
||||
#warning("try pins as an ico ?")
|
||||
|
||||
ConsoleListContentView(viewModel: viewModel.list)
|
||||
footerView
|
||||
}
|
||||
|
||||
@@ -8,9 +8,6 @@ import Pulse
|
||||
import Combine
|
||||
import SwiftUI
|
||||
|
||||
#warning("add counters")
|
||||
#warning("how to handle groups and sortes for alltab")
|
||||
|
||||
final class ConsoleListViewModel: NSObject, NSFetchedResultsControllerDelegate, ObservableObject {
|
||||
@Published private(set) var visibleEntities: ArraySlice<NSManagedObject> = []
|
||||
@Published private(set) var entities: [NSManagedObject] = []
|
||||
|
||||
@@ -100,20 +100,11 @@ private struct ConsoleModeButton: View {
|
||||
}
|
||||
}
|
||||
|
||||
#warning("add pin picker?")
|
||||
#warning("display pins even from the previous session")
|
||||
#warning("remove all pins when pin filter is selected")
|
||||
|
||||
struct ConsoleFiltersView: View {
|
||||
@ObservedObject var viewModel: ConsoleSearchCriteriaViewModel
|
||||
@ObservedObject var router: ConsoleRouter
|
||||
|
||||
var body: some View {
|
||||
// Button(action: { viewModel.isOnlyErrors.toggle() }) {
|
||||
// Image(systemName: viewModel.isOnlyErrors ? "pin.square" : "pin.circle")
|
||||
// .font(.system(size: 20))
|
||||
// .foregroundColor(viewModel.isOnlyErrors ? .red : .accentColor)
|
||||
// }
|
||||
Button(action: { viewModel.isOnlyErrors.toggle() }) {
|
||||
Image(systemName: viewModel.isOnlyErrors ? "exclamationmark.octagon.fill" : "exclamationmark.octagon")
|
||||
.font(.system(size: 20))
|
||||
|
||||
Reference in New Issue
Block a user