mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-06-07 09:58:51 +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'),
|
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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue