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:
Robert Kaussow 2023-07-24 19:05:18 +02:00 committed by GitHub
parent b3c2bb2e15
commit c0216deb43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
});