From ccb1bd30d0161ca6e2d1ffa9e68e567f9c1b09a8 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Mon, 25 Sep 2017 22:12:19 +0100 Subject: [PATCH] Fixed the swagger endpoint #865 #1513 Fixed the custom image issue on the login page Fixed the bug when clicking on the tab on the requests page it would switch to the wrong one Swagger is now back @ /swagger --- .../Jobs/Ombi/OmbiAutomaticUpdater.cs | 9 ++++++-- .../ClientApp/app/login/login.component.html | 2 +- .../ClientApp/app/login/login.component.scss | 5 +++++ .../app/requests/request.component.html | 4 ++-- .../app/requests/request.component.ts | 10 ++++++--- .../app/settings/settingsmenu.component.html | 11 +++++----- src/Ombi/Startup.cs | 1 + src/Ombi/StartupExtensions.cs | 21 ++++++++++++++----- 8 files changed, 45 insertions(+), 18 deletions(-) diff --git a/src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs b/src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs index 831d562d6..0e7131f91 100644 --- a/src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs +++ b/src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs @@ -133,7 +133,7 @@ namespace Ombi.Schedule.Jobs.Ombi } Ctx.WriteLine("Starting Download"); - await DownloadAsync(download.Url, zipDir); + await DownloadAsync(download.Url, zipDir, c); Ctx.WriteLine("Finished Download"); } catch (Exception e) @@ -195,10 +195,15 @@ namespace Ombi.Schedule.Jobs.Ombi } } - public static async Task DownloadAsync(string requestUri, string filename) + public static async Task DownloadAsync(string requestUri, string filename, PerformContext ctx) { using (var client = new WebClient()) { + ctx.WriteProgressBar(); + client.DownloadProgressChanged += (s, e) => + { + ctx.WriteProgressBar(e.ProgressPercentage); + }; await client.DownloadFileTaskAsync(requestUri, filename); } } diff --git a/src/Ombi/ClientApp/app/login/login.component.html b/src/Ombi/ClientApp/app/login/login.component.html index 9458b07fc..3d8d08d22 100644 --- a/src/Ombi/ClientApp/app/login/login.component.html +++ b/src/Ombi/ClientApp/app/login/login.component.html @@ -9,7 +9,7 @@ include the remember me checkbox
-
+