refactor(annotation.js): Standortzuweisung für mobile Geräte entfernt.
This commit is contained in:
parent
ed6a00dfdf
commit
60109e4deb
@ -82,7 +82,6 @@
|
|||||||
})
|
})
|
||||||
|
|
||||||
//city
|
//city
|
||||||
var location = await getLocation();
|
|
||||||
const id_city = PSPDFKit.generateInstantId()
|
const id_city = PSPDFKit.generateInstantId()
|
||||||
const annotation_city = new PSPDFKit.Annotations.WidgetAnnotation({
|
const annotation_city = new PSPDFKit.Annotations.WidgetAnnotation({
|
||||||
id: id_city,
|
id: id_city,
|
||||||
@ -102,8 +101,8 @@
|
|||||||
const formFieldCity = new PSPDFKit.FormFields.TextFormField({
|
const formFieldCity = new PSPDFKit.FormFields.TextFormField({
|
||||||
name: id_city,
|
name: id_city,
|
||||||
annotationIds: PSPDFKit.Immutable.List([annotation_city.id]),
|
annotationIds: PSPDFKit.Immutable.List([annotation_city.id]),
|
||||||
value: IS_MOBILE_DEVICE ? location.city : "",
|
value: "",
|
||||||
readOnly: IS_MOBILE_DEVICE
|
readOnly: false
|
||||||
})
|
})
|
||||||
|
|
||||||
this.markFieldAsRequired(formFieldCity);
|
this.markFieldAsRequired(formFieldCity);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user