From 812de35149a35f8c93ca6642891ed7ac7cef9a96 Mon Sep 17 00:00:00 2001
From: Thomas Camlong
Date: Tue, 28 Jun 2022 10:34:25 +0200
Subject: [PATCH 01/15] :bug: Fix a bug where download module was always there
---
src/components/AppShelf/AppShelf.tsx | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/components/AppShelf/AppShelf.tsx b/src/components/AppShelf/AppShelf.tsx
index 083de4626..abfed55cc 100644
--- a/src/components/AppShelf/AppShelf.tsx
+++ b/src/components/AppShelf/AppShelf.tsx
@@ -152,6 +152,7 @@ const AppShelf = (props: any) => {
const noCategory = config.services.filter(
(e) => e.category === undefined || e.category === null
);
+ const downloadEnabled = config.modules?.[DownloadsModule.title]?.enabled ?? false;
// Create an item with 0: true, 1: true, 2: true... For each category
return (
// Return one item for each category
@@ -176,6 +177,7 @@ const AppShelf = (props: any) => {
{item()}
) : null}
+ {downloadEnabled ? (
{
+ ) : null}
);
From 9945ef892e4930cec5aee74039cb3da636861477 Mon Sep 17 00:00:00 2001
From: Thomas Camlong
Date: Tue, 28 Jun 2022 11:06:45 +0200
Subject: [PATCH 02/15] :iphone: Fix settings pannels height
---
src/components/Settings/AdvancedSettings.tsx | 2 +-
src/components/Settings/CommonSettings.tsx | 42 +------------------
src/components/Settings/Credits.tsx | 44 ++++++++++++++++++++
src/components/Settings/SettingsMenu.tsx | 16 ++++---
4 files changed, 58 insertions(+), 46 deletions(-)
create mode 100644 src/components/Settings/Credits.tsx
diff --git a/src/components/Settings/AdvancedSettings.tsx b/src/components/Settings/AdvancedSettings.tsx
index ad4517457..4c7d6a50e 100644
--- a/src/components/Settings/AdvancedSettings.tsx
+++ b/src/components/Settings/AdvancedSettings.tsx
@@ -37,7 +37,7 @@ export default function TitleChanger() {
};
return (
-
+
)}
-
-
-
Network:
-
- {bpsPrettyPrint(info?.network?.speedUp)} Up{'\n'}
- {bpsPrettyPrint(info?.network?.speedDown)} Down
-
-
+ {networkEnabled && (
+
+
Network:
+
+ {bpsPrettyPrint(info?.network?.speedUp)} Up{'\n'}
+ {bpsPrettyPrint(info?.network?.speedDown)} Down
+
+
+ )}
{graphs.map((graph) => (