Details and queue management
This commit is contained in:
@@ -21,6 +21,15 @@ namespace LeafWeb.Core.Entities
|
||||
public LeafInputStatusType CurrentStatus { get; set; }
|
||||
public virtual ICollection<LeafInputStatus> StatusHistory { get; set; }
|
||||
|
||||
public bool IsInProgress => CurrentStatus == LeafInputStatusType.Starting
|
||||
|| CurrentStatus == LeafInputStatusType.Running
|
||||
|| CurrentStatus == LeafInputStatusType.Finishing;
|
||||
|
||||
public bool IsComplete => CurrentStatus == LeafInputStatusType.Complete;
|
||||
public bool IsDeletable => !IsInProgress;
|
||||
public bool IsPending => CurrentStatus == LeafInputStatusType.Pending;
|
||||
public bool IsRunning => CurrentStatus == LeafInputStatusType.Running;
|
||||
|
||||
[Required(ErrorMessage = "Name required")]
|
||||
public string Name { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user