Immediately show the new OpenID client credentials after adding

This commit is contained in:
Johannes Zellner
2025-09-17 15:17:47 +02:00
parent 0c791ec52c
commit 15848d399c

View File

@@ -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) {