mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-30 04:53:40 +00:00
20 lines
567 B
Swift
20 lines
567 B
Swift
import Observation
|
|
import SwiftUI
|
|
|
|
struct CronSettings: View {
|
|
@Bindable var store: CronJobsStore
|
|
@Bindable var channelsStore: ChannelsStore
|
|
let isActive: Bool
|
|
@State var showEditor = false
|
|
@State var editingJob: CronJob?
|
|
@State var editorError: String?
|
|
@State var isSaving = false
|
|
@State var confirmDelete: CronJob?
|
|
|
|
init(store: CronJobsStore = .shared, channelsStore: ChannelsStore = .shared, isActive: Bool = true) {
|
|
self.store = store
|
|
self.channelsStore = channelsStore
|
|
self.isActive = isActive
|
|
}
|
|
}
|