From a5d0f7b56428ee5a16adb48ebdfd15a03da9279c Mon Sep 17 00:00:00 2001 From: Cucumberrbob <128094686+Cucumberrbob@users.noreply.github.com> Date: Sun, 18 May 2025 15:56:12 +0100 Subject: [PATCH] rework some if statements to be a single if/else, fix typo --- .../src/app/settings/settings.component.html | 38 +++++++++---------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/client/src/app/settings/settings.component.html b/client/src/app/settings/settings.component.html index c9852af..0aeb50a 100644 --- a/client/src/app/settings/settings.component.html +++ b/client/src/app/settings/settings.component.html @@ -80,7 +80,7 @@ } -@if (activeTab === 99) {` +@if (activeTab === 99) {
@@ -110,7 +110,14 @@
- @if (!testDownloadSpeedError && !testDownloadSpeedSuccess) { + @if (testDownloadSpeedError) { +
+ Could not test your download speed
+ {{ testDownloadSpeedError }} +
+ } @else if (testDownloadSpeedSuccess) { +
Download speed {{ testDownloadSpeedSuccess | filesize }}/s
+ } @else {
This will attempt to download a 10GB file from Real-Debrid. When 50MB has been downloaded the test will stop. @@ -137,7 +135,14 @@
- @if (!testWriteSpeedError && !testWriteSpeedSuccess) { + @if (testWriteSpeedError) { +
+ Could not test your download speed
+ {{ testWriteSpeedError }} +
+ } @else if (testWriteSpeedSuccess) { +
Write speed {{ testWriteSpeedSuccess | filesize }}/s
+ } @else {
This will write a small file to your download folder to see how fast it can write to it.