feat: add OnHold list to DashboardViewModel
This commit is contained in:
@@ -7,6 +7,7 @@ namespace Disco.Plugins.ServiceTracker.Models
|
||||
{
|
||||
public List<DashboardTile> Tiles { get; set; }
|
||||
public List<DashboardTile> ReadyForReturn { get; set; }
|
||||
public List<DashboardTile> OnHold { get; set; }
|
||||
public DashboardStats Stats { get; set; }
|
||||
public ServiceTrackerConfig Config { get; set; }
|
||||
public string CurrentFilter { get; set; }
|
||||
@@ -17,6 +18,7 @@ namespace Disco.Plugins.ServiceTracker.Models
|
||||
{
|
||||
Tiles = new List<DashboardTile>();
|
||||
ReadyForReturn = new List<DashboardTile>();
|
||||
OnHold = new List<DashboardTile>();
|
||||
Stats = new DashboardStats();
|
||||
}
|
||||
}
|
||||
@@ -60,7 +62,6 @@ namespace Disco.Plugins.ServiceTracker.Models
|
||||
public int AgeDays { get; set; }
|
||||
public string EtaDisplay { get; set; }
|
||||
public DateTime SortDate { get; set; }
|
||||
|
||||
public DashboardTile() { Source = "disco"; }
|
||||
}
|
||||
|
||||
@@ -85,13 +86,6 @@ namespace Disco.Plugins.ServiceTracker.Models
|
||||
public Dictionary<string, int> ByLocation { get; set; }
|
||||
public Dictionary<string, int> ByStatus { get; set; }
|
||||
public Dictionary<string, int> ByTech { get; set; }
|
||||
|
||||
public DashboardStats()
|
||||
{
|
||||
ByPriority = new Dictionary<string, int>();
|
||||
ByLocation = new Dictionary<string, int>();
|
||||
ByStatus = new Dictionary<string, int>();
|
||||
ByTech = new Dictionary<string, int>();
|
||||
}
|
||||
public DashboardStats() { ByPriority = new Dictionary<string, int>(); ByLocation = new Dictionary<string, int>(); ByStatus = new Dictionary<string, int>(); ByTech = new Dictionary<string, int>(); }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user