diff --git a/PlexRequests.Core/Setup.cs b/PlexRequests.Core/Setup.cs index 2c015f55c..33682d7b3 100644 --- a/PlexRequests.Core/Setup.cs +++ b/PlexRequests.Core/Setup.cs @@ -105,7 +105,8 @@ namespace PlexRequests.Core SearchForMovies = true, SearchForTvShows = true, WeeklyRequestLimit = 0, - BaseUrl = baseUrl ?? string.Empty + BaseUrl = baseUrl ?? string.Empty, + CollectAnalyticData = true, }; var s = new SettingsServiceV2(new SettingsJsonRepository(new DbConfiguration(new SqliteFactory()), new MemoryCacheProvider())); s.SaveSettings(defaultSettings); diff --git a/PlexRequests.UI/Modules/IssuesModule.cs b/PlexRequests.UI/Modules/IssuesModule.cs index 82cb1d2f0..1c66831e0 100644 --- a/PlexRequests.UI/Modules/IssuesModule.cs +++ b/PlexRequests.UI/Modules/IssuesModule.cs @@ -362,7 +362,7 @@ namespace PlexRequests.UI.Modules return myIssues; } - private async Task RemoveIssue(int issueId) + private async Task RemoveIssue(int issueId) { try { @@ -378,13 +378,13 @@ namespace PlexRequests.UI.Modules await IssuesService.DeleteIssueAsync(issueId); } - return View["Index"]; + return Response.AsJson(new JsonResponseModel() { Result = true }); } catch (Exception e) { Log.Error(e); - return View["Index"]; + return Response.AsJson(new JsonResponseModel() { Result = false, Message = "Could not delete issue! Check the logs."}); } } diff --git a/PlexRequests.UI/Views/Issues/Index.cshtml b/PlexRequests.UI/Views/Issues/Index.cshtml index 2c18ccf41..77d7b983f 100644 --- a/PlexRequests.UI/Views/Issues/Index.cshtml +++ b/PlexRequests.UI/Views/Issues/Index.cshtml @@ -61,7 +61,7 @@