mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-19 21:03:13 +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:
@@ -124,7 +124,6 @@ const { doSubmit: saveUser, isLoading: isSaving } = useAsyncAction(async () => {
|
|||||||
title: t('admin.settings.users.saved'),
|
title: t('admin.settings.users.saved'),
|
||||||
type: 'success',
|
type: 'success',
|
||||||
});
|
});
|
||||||
selectedUser.value = undefined;
|
|
||||||
} else {
|
} else {
|
||||||
selectedUser.value = await apiClient.createUser(selectedUser.value);
|
selectedUser.value = await apiClient.createUser(selectedUser.value);
|
||||||
notifications.notify({
|
notifications.notify({
|
||||||
@@ -132,6 +131,7 @@ const { doSubmit: saveUser, isLoading: isSaving } = useAsyncAction(async () => {
|
|||||||
type: 'success',
|
type: 'success',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
selectedUser.value = undefined;
|
||||||
resetPage();
|
resetPage();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user