Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/registration.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-04-01 10:41:04 +0300
committerJoas Schilling <coding@schilljs.com>2021-04-01 10:41:04 +0300
commit2d08501be7e833ea88e36e1b90b4d7ef24f0dd9d (patch)
tree9829774a35e83f1990ea5bfafc2a8239060fc0cf /src
parent1246f0a77fcc51cc264845788cb05d30105eda2f (diff)
Only allow phone when we can save it
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src')
-rw-r--r--src/AdminSettings.vue7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/AdminSettings.vue b/src/AdminSettings.vue
index 69a8a38..acee0ba 100644
--- a/src/AdminSettings.vue
+++ b/src/AdminSettings.vue
@@ -161,7 +161,8 @@
<label for="enforce_fullname">{{ t('registration', 'Enforce full name field') }}</label>
</p>
- <p>
+ <p
+ v-if="canShowPhone">
<input id="show_phone"
v-model="showPhone"
type="checkbox"
@@ -173,7 +174,7 @@
</p>
<p
- v-if="showPhone"
+ v-if="canShowPhone && showPhone"
class="indent">
<input id="enforce_phone"
v-model="enforcePhone"
@@ -250,6 +251,7 @@ export default {
usernamePolicyRegex: '',
showFullname: false,
enforceFullname: false,
+ canShowPhone: false,
showPhone: false,
enforcePhone: false,
additionalHint: '',
@@ -285,6 +287,7 @@ export default {
this.usernamePolicyRegex = loadState('registration', 'username_policy_regex')
this.showFullname = loadState('registration', 'show_fullname')
this.enforceFullname = loadState('registration', 'enforce_fullname')
+ this.canShowPhone = loadState('registration', 'can_show_phone')
this.showPhone = loadState('registration', 'show_phone')
this.enforcePhone = loadState('registration', 'enforce_phone')
this.additionalHint = loadState('registration', 'additional_hint')