mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
Return to users list after creating a new user (#2029)
Fixes: https://github.com/woodpecker-ci/woodpecker/issues/1314#issuecomment-1503635132
This commit is contained in:
parent
b3c2bb2e15
commit
c0216deb43
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,6 @@ const { doSubmit: saveUser, isLoading: isSaving } = useAsyncAction(async () => {
|
|||
title: t('admin.settings.users.saved'),
|
||||
type: 'success',
|
||||
});
|
||||
selectedUser.value = undefined;
|
||||
} else {
|
||||
selectedUser.value = await apiClient.createUser(selectedUser.value);
|
||||
notifications.notify({
|
||||
|
@ -132,6 +131,7 @@ const { doSubmit: saveUser, isLoading: isSaving } = useAsyncAction(async () => {
|
|||
type: 'success',
|
||||
});
|
||||
}
|
||||
selectedUser.value = undefined;
|
||||
resetPage();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue