summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/groups
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-06-21 21:09:41 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-06-21 21:09:41 +0000
commitc097ca59a16661859dc192ca1c02c957c3025d46 (patch)
treeb042da3b9a4b4cfa8e24dad1d7bced1a6034ca41 /app/assets/javascripts/groups
parentf0ccbae4dc1d8356a99f9b97361414aeb9a82337 (diff)
downloadgitlab-ce-c097ca59a16661859dc192ca1c02c957c3025d46.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/groups')
-rw-r--r--app/assets/javascripts/groups/components/group_name_and_path.vue6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/groups/components/group_name_and_path.vue b/app/assets/javascripts/groups/components/group_name_and_path.vue
index f9bd8701199..983535d3e9c 100644
--- a/app/assets/javascripts/groups/components/group_name_and_path.vue
+++ b/app/assets/javascripts/groups/components/group_name_and_path.vue
@@ -133,6 +133,8 @@ export default {
signal: this.activeApiRequestAbortController.signal,
});
+ this.apiLoading = false;
+
if (exists) {
if (suggests.length) {
return Promise.resolve({ exists, suggests });
@@ -148,14 +150,14 @@ export default {
return Promise.resolve({ exists, suggests });
} catch (error) {
if (!axios.isCancel(error)) {
+ this.apiLoading = false;
+
createAlert({
message: this.$options.i18n.apiErrorMessage,
});
}
return Promise.reject();
- } finally {
- this.apiLoading = false;
}
},
handlePathInput(value) {