pull/854/head
Jamie.Rees 8 years ago
parent 262a90e05c
commit ad2169ca17

@ -57,6 +57,7 @@ namespace Ombi.UI.Modules.Admin
WatcherSettings = watcher; WatcherSettings = watcher;
Analytics = a; Analytics = a;
CpSettings = cp;
Before += (ctx) => Security.AdminLoginRedirect(Permissions.Administrator, ctx); Before += (ctx) => Security.AdminLoginRedirect(Permissions.Administrator, ctx);

@ -101,7 +101,8 @@ namespace Ombi.UI.Modules
|| x.Name.Equals(JobNames.PlexChecker) || x.Name.Equals(JobNames.PlexChecker)
|| x.Name.Equals(JobNames.SonarrCacher) || x.Name.Equals(JobNames.SonarrCacher)
|| x.Name.Equals(JobNames.SrCacher) || x.Name.Equals(JobNames.SrCacher)
|| x.Name.Equals(JobNames.PlexCacher)); || x.Name.Equals(JobNames.PlexCacher)
|| x.Name.Equals(JobNames.WatcherCacher));
return Response.AsJson(cacherJobs.Any() return Response.AsJson(cacherJobs.Any()

@ -1,4 +1,5 @@
@using Ombi.UI.Resources @using Ombi.UI.Helpers
@using Ombi.UI.Resources
@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<Ombi.Core.SettingModels.AuthenticationSettings> @inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<Ombi.Core.SettingModels.AuthenticationSettings>
<div class="home"> <div class="home">
@ -30,7 +31,7 @@
<script> <script>
$(function () { $(function () {
var base = $('#baseUrl').val(); var base = '@Html.GetBaseUrl()';
$('#contentBody').on('click', '#loginBtn', function (e) { $('#contentBody').on('click', '#loginBtn', function (e) {
e.preventDefault(); e.preventDefault();

Loading…
Cancel
Save