Add checkbox folder browsers
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user