mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
Improved the status page with the suggestion from #29
This commit is contained in:
parent
8f7098d048
commit
c4f57169ad
6 changed files with 28 additions and 3 deletions
|
@ -31,7 +31,9 @@ namespace PlexRequests.Core.Models
|
|||
{
|
||||
public string Version { get; set; }
|
||||
public bool UpdateAvailable { get; set; }
|
||||
public int ReleasesBehind { get; set; }
|
||||
public string UpdateUri { get; set; }
|
||||
public string DownloadUri { get; set; }
|
||||
public string ReleaseNotes { get; set; }
|
||||
public string ReleaseTitle { get; set; }
|
||||
}
|
||||
}
|
|
@ -70,7 +70,11 @@ namespace PlexRequests.Core
|
|||
{
|
||||
model.UpdateAvailable = true;
|
||||
model.UpdateUri = latestRelease.Result.HtmlUrl;
|
||||
}
|
||||
}
|
||||
|
||||
model.ReleaseNotes = latestRelease.Result.Body;
|
||||
model.DownloadUri = latestRelease.Result.Assets[0].BrowserDownloadUrl;
|
||||
model.ReleaseTitle = latestRelease.Result.Name;
|
||||
|
||||
return model;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue