From 15848d399c89bbce91f9d9857f483e61be0a850e Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Wed, 17 Sep 2025 15:17:47 +0200 Subject: [PATCH] Immediately show the new OpenID client credentials after adding --- dashboard/src/views/UserDirectoryOpenIdProviderView.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dashboard/src/views/UserDirectoryOpenIdProviderView.vue b/dashboard/src/views/UserDirectoryOpenIdProviderView.vue index e19c88a5e..0d1521d9e 100644 --- a/dashboard/src/views/UserDirectoryOpenIdProviderView.vue +++ b/dashboard/src/views/UserDirectoryOpenIdProviderView.vue @@ -86,11 +86,11 @@ async function onSubmit() { if (!isValid.value) return; submitBusy.value = true; - let error; + let error, client; if (clientId.value) { // edit [error] = await userDirectoryModel.updateOpenIdClient(clientId.value, clientName.value, clientLoginRedirectUri.value, clientTokenSignatureAlgorithm.value); } else { // add - [error] = await userDirectoryModel.addOpenIdClient(clientName.value, clientLoginRedirectUri.value, clientTokenSignatureAlgorithm.value); + [error, client] = await userDirectoryModel.addOpenIdClient(clientName.value, clientLoginRedirectUri.value, clientTokenSignatureAlgorithm.value); } if (error) { @@ -103,6 +103,9 @@ async function onSubmit() { editDialog.value.close(); submitBusy.value = false; + + // reopen to show the new client credentials + if (client) onEdit(client); } async function onRemove(client) {