aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/setupchecks.js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-12-03 11:12:41 +0100
committerJoas Schilling <coding@schilljs.com>2020-12-07 14:19:38 +0100
commit46b073d7ce49d9797caf29522358562179846abd (patch)
treef863cfa1cc544774427fd917ea756664bea78fa3 /core/js/setupchecks.js
parent689e3a502d02801f99f8d44676268c499972c909 (diff)
downloadnextcloud-server-46b073d7ce49d9797caf29522358562179846abd.tar.gz
nextcloud-server-46b073d7ce49d9797caf29522358562179846abd.zip
Add a config for default region of phone numbers
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/js/setupchecks.js')
-rw-r--r--core/js/setupchecks.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index 214f148fa94..22c8589f73b 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -216,6 +216,12 @@
type: OC.SetupChecks.MESSAGE_TYPE_WARNING
});
}
+ if (!data.isDefaultPhoneRegionSet) {
+ messages.push({
+ msg: t('core', 'Your installation has no default phone region set. This is required to be able to validate phone numbers in the profile settings without a country code. To allow numbers without a country code, please add "default_phone_region" with the respective ISO 3166-1 code of the wished region.'),
+ type: OC.SetupChecks.MESSAGE_TYPE_INFO
+ });
+ }
if (data.cronErrors.length > 0) {
var listOfCronErrors = "";
data.cronErrors.forEach(function(element){