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