From eb8d026e884c83e93163a2d13dd5cbcd88ada869 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 4 Sep 2021 18:26:26 -0700 Subject: User and server preferences --- modern/src/UserPage.js | 23 +++++++++++++++++++++++ modern/src/admin/ServerPage.js | 14 ++++++++++++++ 2 files changed, 37 insertions(+) (limited to 'modern/src') diff --git a/modern/src/UserPage.js b/modern/src/UserPage.js index ec19dd63..895dac43 100644 --- a/modern/src/UserPage.js +++ b/modern/src/UserPage.js @@ -60,6 +60,29 @@ const UserPage = () => { /> + + }> + + {t('sharedPreferences')} + + + + setItem({ ...item, phone: event.target.value })} + label={t('sharedPhone')} + variant="filled" + /> + setItem({ ...item, poiLayer: event.target.value })} + label={t('mapPoiLayer')} + variant="filled" + /> + + }> diff --git a/modern/src/admin/ServerPage.js b/modern/src/admin/ServerPage.js index 6f0d0734..502efa4c 100644 --- a/modern/src/admin/ServerPage.js +++ b/modern/src/admin/ServerPage.js @@ -66,6 +66,20 @@ const ServerPage = () => { + setItem({ ...item, mapUrl: event.target.value })} + label={t('mapCustomLabel')} + variant="filled" + /> + setItem({ ...item, poiLayer: event.target.value })} + label={t('mapPoiLayer')} + variant="filled" + />