mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-11 07:46:05 -07:00
Small changes
This commit is contained in:
parent
fcf2c84f61
commit
41e547ca10
1 changed files with 6 additions and 2 deletions
|
@ -690,8 +690,6 @@ namespace PlexRequests.UI.Modules
|
|||
private Response GetLogLevels()
|
||||
{
|
||||
var levels = LogManager.Configuration.LoggingRules.FirstOrDefault(x => x.NameMatches("database"));
|
||||
Log.Debug("debug");
|
||||
Log.Info("Info");
|
||||
return Response.AsJson(levels.Levels);
|
||||
}
|
||||
|
||||
|
@ -819,6 +817,12 @@ namespace PlexRequests.UI.Modules
|
|||
{
|
||||
var settings = this.Bind<LandingPageSettings>();
|
||||
|
||||
var plexSettings = await PlexService.GetSettingsAsync();
|
||||
if (string.IsNullOrEmpty(plexSettings.Ip))
|
||||
{
|
||||
return Response.AsJson(new JsonResponseModel { Result = false, Message = "We cannot enable the landing page if Plex is not setup!" });
|
||||
}
|
||||
|
||||
if (settings.Enabled && settings.EnabledNoticeTime && string.IsNullOrEmpty(settings.NoticeMessage))
|
||||
{
|
||||
return Response.AsJson(new JsonResponseModel { Result = false, Message = "If you are going to enabled the notice, then we need a message!"});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue