From c0216deb43d360082e7500cf2a132d0246709833 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 24 Jul 2023 19:05:18 +0200 Subject: [PATCH] Return to users list after creating a new user (#2029) Fixes: https://github.com/woodpecker-ci/woodpecker/issues/1314#issuecomment-1503635132 --- web/src/components/admin/settings/AdminUsersTab.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/admin/settings/AdminUsersTab.vue b/web/src/components/admin/settings/AdminUsersTab.vue index b99631ac7..0b95cacc1 100644 --- a/web/src/components/admin/settings/AdminUsersTab.vue +++ b/web/src/components/admin/settings/AdminUsersTab.vue @@ -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(); });