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

ancestor_notice.vue « components « clusters_list « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b241aa34283c0e3022fe2fc05a9fb3a9e90b885a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<script>
import { GlLink, GlSprintf, GlAlert } from '@gitlab/ui';
import { mapState } from 'vuex';

export default {
  components: {
    GlLink,
    GlSprintf,
    GlAlert,
  },
  computed: {
    ...mapState(['ancestorHelperPath', 'hasAncestorClusters']),
  },
};
</script>

<template>
  <gl-alert v-if="hasAncestorClusters" variant="info" :dismissible="false" class="gl-my-4">
    <gl-sprintf
      :message="
        s__(
          'ClusterIntegration|Clusters are utilized by selecting the nearest ancestor with a matching environment scope. For example, project clusters will override group clusters. %{linkStart}More information%{linkEnd}',
        )
      "
    >
      <template #link="{ content }">
        <gl-link :href="ancestorHelperPath">
          <strong>{{ content }}</strong>
        </gl-link>
      </template>
    </gl-sprintf>
  </gl-alert>
</template>