Add checkbox folder browsers

This commit is contained in:
Mikei386
2026-06-14 12:08:37 +02:00
parent c35a183a76
commit ebd2a8a47d
12 changed files with 173 additions and 16 deletions
+7
View File
@@ -63,6 +63,13 @@ func (s *Service) Stop() { s.queue.Stop() }
func (s *Service) Config() model.Config { s.mu.RLock(); defer s.mu.RUnlock(); return s.config }
func (s *Service) Runs() []model.Run { return s.queue.Snapshot() }
func (s *Service) BrowseDirectories(path string) ([]platform.DirectoryEntry, error) {
if path == "" || path == "/" {
return platform.BrowseRoots(), nil
}
return platform.BrowseDirectories(path)
}
func (s *Service) LastRun(jobID string) time.Time {
var latest time.Time
for _, run := range s.queue.Snapshot() {