summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/jira_connect/subscriptions/components/compatibility_alert.vue
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/jira_connect/subscriptions/components/compatibility_alert.vue')
-rw-r--r--app/assets/javascripts/jira_connect/subscriptions/components/compatibility_alert.vue15
1 files changed, 14 insertions, 1 deletions
diff --git a/app/assets/javascripts/jira_connect/subscriptions/components/compatibility_alert.vue b/app/assets/javascripts/jira_connect/subscriptions/components/compatibility_alert.vue
index c5b56535247..9b50681515e 100644
--- a/app/assets/javascripts/jira_connect/subscriptions/components/compatibility_alert.vue
+++ b/app/assets/javascripts/jira_connect/subscriptions/components/compatibility_alert.vue
@@ -3,6 +3,7 @@ import { GlAlert, GlSprintf, GlLink } from '@gitlab/ui';
import { s__ } from '~/locale';
import { helpPagePath } from '~/helpers/help_page_helper';
import LocalStorageSync from '~/vue_shared/components/local_storage_sync.vue';
+import glFeatureFlagMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
const COMPATIBILITY_ALERT_STATE_KEY = 'compatibility_alert_dismissed';
@@ -14,6 +15,7 @@ export default {
GlLink,
LocalStorageSync,
},
+ mixins: [glFeatureFlagMixin()],
data() {
return {
alertDismissed: false,
@@ -23,6 +25,14 @@ export default {
shouldShowAlert() {
return !this.alertDismissed;
},
+ isOauthSelfManagedEnabled() {
+ return this.glFeatures.jiraConnectOauth && this.glFeatures.jiraConnectOauthSelfManaged;
+ },
+ alertBody() {
+ return this.isOauthSelfManagedEnabled
+ ? this.$options.i18n.body
+ : this.$options.i18n.bodyDotCom;
+ },
},
methods: {
dismissAlert() {
@@ -32,6 +42,9 @@ export default {
i18n: {
title: s__('Integrations|Known limitations'),
body: s__(
+ 'Integrations|Adding a namespace only works in browsers that allow cross-site cookies. %{linkStart}Learn more%{linkEnd}.',
+ ),
+ bodyDotCom: s__(
'Integrations|This integration only works with GitLab.com. Adding a namespace only works in browsers that allow cross-site cookies. %{linkStart}Learn more%{linkEnd}.',
),
},
@@ -50,7 +63,7 @@ export default {
:title="$options.i18n.title"
@dismiss="dismissAlert"
>
- <gl-sprintf :message="$options.i18n.body">
+ <gl-sprintf :message="alertBody">
<template #link="{ content }">
<gl-link :href="$options.DOCS_LINK_URL" target="_blank">{{ content }}</gl-link>
</template>