fix(ChangeLog) No longer breaks when revisiting
This commit is contained in:
@@ -70,11 +70,8 @@ else {
|
||||
@code {
|
||||
|
||||
#if NO_SQL
|
||||
[Parameter]
|
||||
public List<TaskModel> Tasks { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public List<SprintModel> Sprints { get; set; }
|
||||
public List<TaskModel> Tasks => AgileService.TaskModels;
|
||||
public List<SprintModel> Sprints => AgileService.SprintModels;
|
||||
#else
|
||||
[Inject]
|
||||
DatabaseContext Database { get; set; }
|
||||
@@ -97,9 +94,6 @@ else {
|
||||
}
|
||||
|
||||
void HasChanged() {
|
||||
Sprints = AgileService.SprintModels;
|
||||
Tasks = AgileService.TaskModels;
|
||||
|
||||
backlog.Clear();
|
||||
|
||||
foreach (var task in Tasks) {
|
||||
|
||||
@@ -82,11 +82,9 @@ else {
|
||||
@code {
|
||||
|
||||
#if NO_SQL
|
||||
[Parameter]
|
||||
public List<PatchModel> Patches { get; set; }
|
||||
public List<PatchModel> Patches => GitService.PatchModels;
|
||||
|
||||
[Parameter]
|
||||
public List<ChangeModel> Changes { get; set; }
|
||||
public List<ChangeModel> Changes => GitService.ChangeModels;
|
||||
#else
|
||||
[Inject]
|
||||
DatabaseContext Database { get; set; }
|
||||
@@ -115,8 +113,6 @@ else {
|
||||
}
|
||||
|
||||
void HasChanged() {
|
||||
Changes = GitService.ChangeModels;
|
||||
Patches = GitService.PatchModels;
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
|
||||
@@ -8,24 +8,37 @@
|
||||
|
||||
<LayoutLargeContentComponent>
|
||||
|
||||
<PaperComponent>
|
||||
<FormDisplayComponent Label="Patch">
|
||||
<Display>
|
||||
Game Patch: @EntityModel.GameVersion
|
||||
</Display>
|
||||
</FormDisplayComponent>
|
||||
</PaperComponent>
|
||||
<PaperComponent>
|
||||
<FormDisplayComponent Label="Patch">
|
||||
<Display>
|
||||
Game Patch: @EntityModel.GameVersion
|
||||
</Display>
|
||||
</FormDisplayComponent>
|
||||
</PaperComponent>
|
||||
|
||||
<div style="margin-left: 8px">
|
||||
<ButtonGroupComponent OnClick="((choice => { entityDisplayService.SetDisplayType(choice); }))" Choice="@entityDisplayService.GetDisplayType()" Choices="@entityDisplayService.DefaultChoices()"></ButtonGroupComponent>
|
||||
</div>
|
||||
<div style="margin-left: 8px">
|
||||
<ButtonGroupComponent OnClick="((choice => { entityDisplayService.SetDisplayType(choice); }))" Choice="@entityDisplayService.GetDisplayType()" Choices="@entityDisplayService.DefaultChoices()"></ButtonGroupComponent>
|
||||
</div>
|
||||
|
||||
|
||||
@if (entity == null)
|
||||
@if(Text.Trim().ToLower().Equals("walter"))
|
||||
{
|
||||
<div>Invalid entity name entered: @Text</div>
|
||||
<div>No such entity. Did you mean <b>"Throne"</b>?</div>
|
||||
<PaperComponent>
|
||||
<CodeComponent>Unhandled Exception: EXCEPTION_MEMORY_SIZE_VIOLATION
|
||||
UNIT_WALTER too powerful to be displayed.
|
||||
|
||||
This SHOULD NEVER HAPPEN!
|
||||
</CodeComponent>
|
||||
</PaperComponent>
|
||||
}
|
||||
else if (entity == null)
|
||||
{
|
||||
<PaperComponent>
|
||||
<div>Invalid entity name entered: @Text</div>
|
||||
<div>No such entity. Did you mean <b>"Throne"</b>?</div>
|
||||
</PaperComponent>
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
<PaperComponent>
|
||||
@@ -42,13 +55,6 @@
|
||||
</LayoutLargeContentComponent>
|
||||
|
||||
|
||||
<style>
|
||||
.databaseInfoContainer {
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
|
||||
Reference in New Issue
Block a user