refactor(annotation.js): Standortzuweisung für mobile Geräte entfernt.

This commit is contained in:
Developer 02 2024-12-12 18:21:28 +01:00
parent ed6a00dfdf
commit 60109e4deb

View File

@ -82,7 +82,6 @@
})
//city
var location = await getLocation();
const id_city = PSPDFKit.generateInstantId()
const annotation_city = new PSPDFKit.Annotations.WidgetAnnotation({
id: id_city,
@ -102,8 +101,8 @@
const formFieldCity = new PSPDFKit.FormFields.TextFormField({
name: id_city,
annotationIds: PSPDFKit.Immutable.List([annotation_city.id]),
value: IS_MOBILE_DEVICE ? location.city : "",
readOnly: IS_MOBILE_DEVICE
value: "",
readOnly: false
})
this.markFieldAsRequired(formFieldCity);