From f843b4fcc57ab17570b73de25a3c7dceaf43eea4 Mon Sep 17 00:00:00 2001 From: Lars Saalbach Date: Sat, 5 Oct 2024 21:12:01 +0200 Subject: [PATCH] Fixing bluetooth popover label for searchings --- src/assets/i18n/en.json | 6 +++++- .../bluetooth-device-chooser-popover.component.ts | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index 6cd9282e..96f54d4b 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -1402,5 +1402,9 @@ "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", - "HIDE_VALUE_CARDS_ON_MAXIMIZED_SCREEN": "Hide value cards on maximized screen" + "HIDE_VALUE_CARDS_ON_MAXIMIZED_SCREEN": "Hide value cards on maximized screen", + "BLUETOOTH_REQUEST_PERMISSION": { + "LOCATION": "To find bluetooth devices, the app needs access to the location.", + "BLUETOOTH": "To find bluetooth devices, the app needs access to bluetooth" + } } diff --git a/src/popover/bluetooth-device-chooser-popover/bluetooth-device-chooser-popover.component.ts b/src/popover/bluetooth-device-chooser-popover/bluetooth-device-chooser-popover.component.ts index 5c6466a5..54c3ebe4 100644 --- a/src/popover/bluetooth-device-chooser-popover/bluetooth-device-chooser-popover.component.ts +++ b/src/popover/bluetooth-device-chooser-popover/bluetooth-device-chooser-popover.component.ts @@ -69,7 +69,7 @@ export class BluetoothDeviceChooserPopoverComponent await this.bleManager.hasLocationPermission(); if (!hasLocationPermission) { await this.uiAlert.showMessage( - 'REFRACTOMETER.REQUEST_PERMISSION.LOCATION', + 'BLUETOOTH_REQUEST_PERMISSION.LOCATION', undefined, undefined, true @@ -81,7 +81,7 @@ export class BluetoothDeviceChooserPopoverComponent await this.bleManager.hasBluetoothPermission(); if (!hasBluetoothPermission) { await this.uiAlert.showMessage( - 'REFRACTOMETER.REQUEST_PERMISSION.BLUETOOTH', + 'BLUETOOTH_REQUEST_PERMISSION.BLUETOOTH', undefined, undefined, true