mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Add image to ModListSummary
This commit is contained in:
2
.github/workflows/tests.yaml
vendored
2
.github/workflows/tests.yaml
vendored
@ -7,7 +7,7 @@ on:
|
|||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
env:
|
env:
|
||||||
VERSION: 3.0.0.0-beta9
|
VERSION: 3.0.0.0-beta10
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -525,7 +525,8 @@ public class ValidateLists : IVerb
|
|||||||
Passed = l.Archives.Count(f => f.Status == ArchiveStatus.Valid),
|
Passed = l.Archives.Count(f => f.Status == ArchiveStatus.Valid),
|
||||||
MachineURL = l.MachineURL,
|
MachineURL = l.MachineURL,
|
||||||
Name = l.Name,
|
Name = l.Name,
|
||||||
Updating = 0
|
Updating = 0,
|
||||||
|
Image = l.Image
|
||||||
}).ToArray();
|
}).ToArray();
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
using System;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Wabbajack.DTOs;
|
namespace Wabbajack.DTOs;
|
||||||
@ -23,4 +24,6 @@ public class ModListSummary
|
|||||||
[JsonPropertyName("modlist_missing")] public bool ModListIsMissing { get; set; }
|
[JsonPropertyName("modlist_missing")] public bool ModListIsMissing { get; set; }
|
||||||
|
|
||||||
[JsonPropertyName("has_failures")] public bool HasFailures => Failed > 0 || ModListIsMissing;
|
[JsonPropertyName("has_failures")] public bool HasFailures => Failed > 0 || ModListIsMissing;
|
||||||
|
|
||||||
|
[JsonPropertyName("image")] public Uri Image { get; set; }
|
||||||
}
|
}
|
Reference in New Issue
Block a user