2025-12-14 05:04:58 +00:00
|
|
|
import Observation
|
2025-12-13 02:34:18 +00:00
|
|
|
import SwiftUI
|
|
|
|
|
|
|
|
|
|
struct CronSettings: View {
|
2025-12-14 05:04:58 +00:00
|
|
|
@Bindable var store: CronJobsStore
|
2026-01-20 11:49:31 +00:00
|
|
|
@Bindable var channelsStore: ChannelsStore
|
2025-12-24 19:36:10 +01:00
|
|
|
@State var showEditor = false
|
|
|
|
|
@State var editingJob: CronJob?
|
|
|
|
|
@State var editorError: String?
|
|
|
|
|
@State var isSaving = false
|
|
|
|
|
@State var confirmDelete: CronJob?
|
2025-12-13 02:34:18 +00:00
|
|
|
|
2026-01-20 11:49:31 +00:00
|
|
|
init(store: CronJobsStore = .shared, channelsStore: ChannelsStore = .shared) {
|
2025-12-13 02:34:18 +00:00
|
|
|
self.store = store
|
2026-01-20 11:49:31 +00:00
|
|
|
self.channelsStore = channelsStore
|
2025-12-13 02:34:18 +00:00
|
|
|
}
|
2025-12-24 17:42:14 +01:00
|
|
|
}
|