Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-22 15:07:22 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-22 15:07:22 +0300
commita59aa00d8aeea39a6360d9be12ffee564802c63c (patch)
tree646e082ab91d6db35f1e3e744d1f202e77cbc36e /app/assets/javascripts/pipelines
parent58e69d174512e267079ebb6afc60dd097070bf35 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/pipelines')
-rw-r--r--app/assets/javascripts/pipelines/mixins/pipelines_mixin.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/pipelines/mixins/pipelines_mixin.js b/app/assets/javascripts/pipelines/mixins/pipelines_mixin.js
index 07551c2342f..e6770b71113 100644
--- a/app/assets/javascripts/pipelines/mixins/pipelines_mixin.js
+++ b/app/assets/javascripts/pipelines/mixins/pipelines_mixin.js
@@ -2,7 +2,7 @@ import Visibility from 'visibilityjs';
import { createAlert } from '~/flash';
import { helpPagePath } from '~/helpers/help_page_helper';
import { historyPushState, buildUrlWithCurrentLocation } from '~/lib/utils/common_utils';
-import httpStatusCodes from '~/lib/utils/http_status';
+import { HTTP_STATUS_UNAUTHORIZED } from '~/lib/utils/http_status';
import Poll from '~/lib/utils/poll';
import { __ } from '~/locale';
import { validateParams } from '~/pipelines/utils';
@@ -196,7 +196,7 @@ export default {
this.updateTable();
})
.catch((e) => {
- const unauthorized = e.response.status === httpStatusCodes.UNAUTHORIZED;
+ const unauthorized = e.response.status === HTTP_STATUS_UNAUTHORIZED;
let errorMessage = __(
'An error occurred while trying to run a new pipeline for this merge request.',
);