From 48a2fbeb9437cf00b7c21e21c31d46841d26c113 Mon Sep 17 00:00:00 2001 From: Florian Klinger Date: Tue, 21 Nov 2023 17:16:22 +0100 Subject: [PATCH 1/4] Set the identifier input field to not editable if its set already Signed-off-by: Florian Klinger --- src/components/SettingsForm.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/SettingsForm.vue b/src/components/SettingsForm.vue index 7d128be0..d00aa9df 100644 --- a/src/components/SettingsForm.vue +++ b/src/components/SettingsForm.vue @@ -28,6 +28,7 @@ v-model="localProvider.identifier" type="text" :placeholder="t('user_oidc', 'Display name to identify the provider')" + :disabled="identifierInitiallySet" required>

@@ -194,7 +195,8 @@ export default { }, created() { this.localProvider = this.provider - }, + this.identifierInitiallySet = !!this.localProvider.identifier + } } From 45c1f7e0c116f481e2bfac01e18d6a2cccd4b8f3 Mon Sep 17 00:00:00 2001 From: Florian Klinger Date: Thu, 23 Nov 2023 16:54:49 +0100 Subject: [PATCH 2/4] Added max length limit and live indicator for identifier field Signed-off-by: Florian Klinger --- src/components/SettingsForm.vue | 40 +++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/src/components/SettingsForm.vue b/src/components/SettingsForm.vue index d00aa9df..716ea568 100644 --- a/src/components/SettingsForm.vue +++ b/src/components/SettingsForm.vue @@ -20,16 +20,17 @@ - --> -