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>2021-01-14 15:10:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-01-14 15:10:54 +0300
commit18873553de98259d0558157f78198b38ddd02b31 (patch)
treecbdf0261e8a72975b7044fe7df8a1439c93ed4d5 /app/assets/javascripts/jira_connect
parent0ea7b5c8a3f7afaae6b03279af56cd880d538bd7 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/jira_connect')
-rw-r--r--app/assets/javascripts/jira_connect/components/app.vue10
-rw-r--r--app/assets/javascripts/jira_connect/index.js4
2 files changed, 11 insertions, 3 deletions
diff --git a/app/assets/javascripts/jira_connect/components/app.vue b/app/assets/javascripts/jira_connect/components/app.vue
index 275a66d5956..e08918a6720 100644
--- a/app/assets/javascripts/jira_connect/components/app.vue
+++ b/app/assets/javascripts/jira_connect/components/app.vue
@@ -1,9 +1,13 @@
<script>
import { mapState } from 'vuex';
+import { GlAlert } from '@gitlab/ui';
import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
export default {
name: 'JiraConnectApp',
+ components: {
+ GlAlert,
+ },
mixins: [glFeatureFlagsMixin()],
computed: {
...mapState(['errorMessage']),
@@ -16,6 +20,12 @@ export default {
<template>
<div>
+ <gl-alert v-if="errorMessage" class="gl-mb-6" variant="danger" :dismissible="false">
+ {{ errorMessage }}
+ </gl-alert>
+
+ <h1>GitLab for Jira Configuration</h1>
+
<div v-if="showNewUi">
<h3 data-testid="new-jira-connect-ui-heading">{{ s__('Integrations|Linked namespaces') }}</h3>
</div>
diff --git a/app/assets/javascripts/jira_connect/index.js b/app/assets/javascripts/jira_connect/index.js
index 05f13de6f53..0dbcb778a6c 100644
--- a/app/assets/javascripts/jira_connect/index.js
+++ b/app/assets/javascripts/jira_connect/index.js
@@ -23,11 +23,9 @@ const initJiraFormHandlers = () => {
};
const reqFailed = (res, fallbackErrorMessage) => {
- const { responseJSON: { error = fallbackErrorMessage } = {} } = res || {};
+ const { error = fallbackErrorMessage } = res || {};
store.commit(SET_ERROR_MESSAGE, error);
- // eslint-disable-next-line no-alert
- alert(error);
};
if (typeof AP.getLocation === 'function') {