Small changes

pull/332/head
tidusjar 9 years ago
parent fcf2c84f61
commit 41e547ca10

@ -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…
Cancel
Save