diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-21 21:09:41 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-21 21:09:41 +0000 |
commit | c097ca59a16661859dc192ca1c02c957c3025d46 (patch) | |
tree | b042da3b9a4b4cfa8e24dad1d7bced1a6034ca41 /app/assets/javascripts/groups | |
parent | f0ccbae4dc1d8356a99f9b97361414aeb9a82337 (diff) | |
download | gitlab-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.vue | 6 |
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) { |