fix(Agile) Fixed status sorting and load bug
This commit is contained in:
Binary file not shown.
@@ -81,6 +81,7 @@ else
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
agileService.Subscribe(HasChanged);
|
||||
HasChanged();
|
||||
}
|
||||
|
||||
void IDisposable.Dispose()
|
||||
@@ -90,6 +91,8 @@ else
|
||||
|
||||
void HasChanged()
|
||||
{
|
||||
if(!agileService.IsLoaded()) return;
|
||||
|
||||
backlog.Clear();
|
||||
|
||||
foreach (var task in agileService.AgileTaskModels!)
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<div class="tasksContainer">
|
||||
@if (AgileSprint.AgileTaskModels.Count > 0)
|
||||
{
|
||||
@foreach (var task in AgileSprint.AgileTaskModels)
|
||||
@foreach (var task in AgileSprint.AgileTaskModels.OrderBy(x=>x.OrderPriority))
|
||||
{
|
||||
<div class="taskContainer @task.Status.ToLower() @task.Task.ToLower()">
|
||||
<div class="taskName">@task.Name</div>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -13,6 +13,13 @@ public class AgileTaskModel
|
||||
public string Status { get; set; } = StatusType.Fun_Idea;
|
||||
public string Priority { get; set; } = PriorityType.Medium;
|
||||
public string Task { get; set; } = TaskType.Feature;
|
||||
|
||||
public int OrderPriority => Status == StatusType.In_Progress ? 1
|
||||
: Status == StatusType.Todo ? 2
|
||||
: Status == StatusType.Done ? 3
|
||||
: Status == StatusType.Canceled ? 4
|
||||
: Status == StatusType.To_Test ? 2
|
||||
: Status == StatusType.Fun_Idea ? 5 : 6;
|
||||
|
||||
public DateTime? Created { get; set; } = null;
|
||||
public DateTime? Finished { get; set; } = null;
|
||||
|
||||
@@ -1,16 +1,9 @@
|
||||
|
||||
using System.Timers;
|
||||
|
||||
namespace Model.Feedback;
|
||||
namespace Model.Feedback;
|
||||
|
||||
public class ToastModel
|
||||
{
|
||||
public string Title { get; set; } = "addTitle";
|
||||
public string Message { get; set; } = "addMessage";
|
||||
public string SeverityType { get; set; } = "addType";
|
||||
|
||||
public float Age { get; set; } = 0;
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user