Immediately show the new OpenID client credentials after adding
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user