Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/25/18 13:12:02 (6 years ago)
Author:
jzenisek
Message:

#2839: fixed several bugs in JobAdmin:

  • disabled play button if no project or resource is selected
  • extract stats for selected or alternatively for checked resources
  • collapse slaves-only groups if no slave is assigned explicitly
  • prevent unnecessary resource tree rebuilds (reset and style instead)
  • suppress double clicks in resource tree (i.e. prevent win forms check-error)

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs

    r15914 r15920  
    392392          Content.Job.ResourceIds = null;
    393393        }
     394        SetEnabledStateOfExecutableButtons();
    394395      }
    395396    }
     
    509510        startButton.Enabled = pauseButton.Enabled = stopButton.Enabled = false;
    510511      } else {
    511         startButton.Enabled = Content.IsControllable && Content.HiveTasks != null && Content.HiveTasks.Count > 0 && (Content.ExecutionState == ExecutionState.Prepared || Content.ExecutionState == ExecutionState.Paused) && !Content.IsProgressing;
     512        startButton.Enabled = Content.IsControllable && Content.HiveTasks != null && Content.HiveTasks.Count > 0
     513          && Content.Job.ProjectId != null && Content.Job.ProjectId != Guid.Empty && Content.Job.ResourceIds != null  && Content.Job.ResourceIds.Any()
     514          && (Content.ExecutionState == ExecutionState.Prepared || Content.ExecutionState == ExecutionState.Paused) && !Content.IsProgressing;
    512515        pauseButton.Enabled = Content.IsControllable && Content.ExecutionState == ExecutionState.Started && !Content.IsProgressing;
    513516        stopButton.Enabled = Content.IsControllable && (Content.ExecutionState == ExecutionState.Started || Content.ExecutionState == ExecutionState.Paused) && !Content.IsProgressing;
Note: See TracChangeset for help on using the changeset viewer.