mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-10 23:42:36 -07:00
Set the defaults for the landing page
This commit is contained in:
parent
f30bc103ed
commit
5a1b606f01
1 changed files with 8 additions and 1 deletions
|
@ -818,7 +818,14 @@ namespace PlexRequests.UI.Modules
|
|||
private async Task<Negotiator> LandingPage()
|
||||
{
|
||||
var settings = await LandingSettings.GetSettingsAsync();
|
||||
|
||||
if (settings.NoticeEnd == DateTime.MinValue)
|
||||
{
|
||||
settings.NoticeEnd = DateTime.Now;
|
||||
}
|
||||
if (settings.NoticeStart == DateTime.MinValue)
|
||||
{
|
||||
settings.NoticeStart = DateTime.Now;
|
||||
}
|
||||
return View["LandingPage", settings];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue