From 68531ff2402a65d667efa7088fd08f378b3d10ff Mon Sep 17 00:00:00 2001 From: Lars Saalbach Date: Mon, 30 Sep 2024 23:30:12 +0200 Subject: [PATCH] #801 - Make it possible to hide value cards on maximized screen --- src/app/brew/brew-flow/brew-flow.component.html | 2 +- src/app/settings/settings.page.html | 8 ++++++++ src/assets/i18n/en.json | 3 ++- src/classes/settings/settings.ts | 4 ++++ src/interfaces/settings/iSettings.ts | 2 ++ 5 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/app/brew/brew-flow/brew-flow.component.html b/src/app/brew/brew-flow/brew-flow.component.html index cbc805c8..e575cd1c 100644 --- a/src/app/brew/brew-flow/brew-flow.component.html +++ b/src/app/brew/brew-flow/brew-flow.component.html @@ -48,7 +48,7 @@ -
+
{{"SMART_SCALE_MAXIMIZE_ON_START_TIMER" | translate}}
+ + +
+

{{"HIDE_VALUE_CARDS_ON_MAXIMIZED_SCREEN" | translate}}

+
+
+
diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index 69b7c2c2..6cd9282e 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -1401,5 +1401,6 @@ "DISCONNECT_PRESSURE": "Disconnect pressure", "DISCONNECT_TEMPERATURE": "Disconnect temperature", "DISCONNECT_REFRACTOMETER": "Disconnect refractometer", - "NO_DEVICES_FOUND_PLEASE_TRY_AGAIN": "We didn't find any supported bluetooth devices, please try again" + "NO_DEVICES_FOUND_PLEASE_TRY_AGAIN": "We didn't find any supported bluetooth devices, please try again", + "HIDE_VALUE_CARDS_ON_MAXIMIZED_SCREEN": "Hide value cards on maximized screen" } diff --git a/src/classes/settings/settings.ts b/src/classes/settings/settings.ts index 1adf7cb1..ee25bd5b 100755 --- a/src/classes/settings/settings.ts +++ b/src/classes/settings/settings.ts @@ -176,6 +176,8 @@ export class Settings implements ISettings { public bluetooth_scale_ignore_weight_button_active: boolean; public bluetooth_scale_first_drip_threshold: number; + public maximize_hide_value_cards_on_maximize_screen: boolean; + public pressure_id: string; public pressure_type: PressureType; public pressure_log: boolean; @@ -449,6 +451,8 @@ export class Settings implements ISettings { this.bluetooth_scale_ignore_weight_button_active = false; this.bluetooth_scale_first_drip_threshold = 0.1; + this.maximize_hide_value_cards_on_maximize_screen = false; + this.scale_log = false; this.pressure_id = ''; diff --git a/src/interfaces/settings/iSettings.ts b/src/interfaces/settings/iSettings.ts index 35d8d7c1..d2b0dcd6 100755 --- a/src/interfaces/settings/iSettings.ts +++ b/src/interfaces/settings/iSettings.ts @@ -167,6 +167,8 @@ export interface ISettings { bluetooth_scale_ignore_weight_button_active: boolean; bluetooth_scale_first_drip_threshold: number; + maximize_hide_value_cards_on_maximize_screen: boolean; + pressure_id: string; pressure_type: PressureType; pressure_log: boolean;