mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 07:46:05 -07:00
Landing page stuff #298
This commit is contained in:
parent
7d03d296fd
commit
0eea53e8fe
2 changed files with 40 additions and 4 deletions
|
@ -66,10 +66,15 @@ namespace PlexRequests.UI.Modules
|
|||
|
||||
public async Task<Negotiator> Index()
|
||||
{
|
||||
var landingSettings = await LandingPageSettings.GetSettingsAsync();
|
||||
if (landingSettings.Enabled)
|
||||
var query = Request.Query["landing"];
|
||||
var landingCheck = (bool?)query ?? true;
|
||||
if (landingCheck)
|
||||
{
|
||||
return View["Landing/Index",landingSettings];
|
||||
var landingSettings = await LandingPageSettings.GetSettingsAsync();
|
||||
if (landingSettings.Enabled)
|
||||
{
|
||||
return View["Landing/Index", landingSettings];
|
||||
}
|
||||
}
|
||||
var settings = await AuthService.GetSettingsAsync();
|
||||
return View["Index", settings];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue