refactor(_layout): City-Regex-Prüfung ignorieren, wenn IS_MOBILE_DEVICE

- IS_MOBILE_DEVICE als globalen konstanten Wert hinzugefügt
 - DEVICE_TYPE geändert in DEVICE_SCREEN_TYPE
 - IS_DESKTOP zu IS_DESKTOP_SIZE geändert
This commit is contained in:
Developer 02
2024-10-16 11:30:15 +02:00
parent f6fc850a20
commit 7ff787ec28
8 changed files with 11 additions and 17 deletions

View File

@@ -102,8 +102,8 @@
const formFieldCity = new PSPDFKit.FormFields.TextFormField({
name: id_city,
annotationIds: PSPDFKit.Immutable.List([annotation_city.id]),
value: isMobile() ? location.city : "",
readOnly: isMobile()
value: IS_MOBILE_DEVICE ? location.city : "",
readOnly: IS_MOBILE_DEVICE
})
this.markFieldAsRequired(formFieldCity);