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

subscriptions_page.vue « pages « subscriptions « jira_connect « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b1c1ae73e14080133184b250b8bb92285cbf4b41 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<script>
import { mapState } from 'vuex';
import { GlEmptyState, GlLoadingIcon } from '@gitlab/ui';

import SubscriptionsList from '../components/subscriptions_list.vue';
import AddNamespaceButton from '../components/add_namespace_button.vue';

export default {
  name: 'SubscriptionsPage',
  components: {
    GlEmptyState,
    GlLoadingIcon,
    SubscriptionsList,
    AddNamespaceButton,
  },
  props: {
    hasSubscriptions: {
      type: Boolean,
      required: true,
    },
  },
  computed: {
    ...mapState(['subscriptionsLoading', 'subscriptionsError']),
  },
};
</script>

<template>
  <div>
    <h2 class="gl-text-center gl-mb-7">{{ s__('JiraService|GitLab for Jira Configuration') }}</h2>

    <gl-loading-icon v-if="subscriptionsLoading" size="md" />
    <div v-else-if="hasSubscriptions && !subscriptionsError">
      <div class="gl-display-flex gl-justify-content-end gl-mb-3">
        <add-namespace-button />
      </div>

      <subscriptions-list />
    </div>
    <gl-empty-state
      v-else
      :title="s__('Integrations|No linked namespaces')"
      :description="
        s__(
          'Integrations|Namespaces are the GitLab groups and subgroups you link to this Jira instance.',
        )
      "
    >
      <template #actions>
        <add-namespace-button />
      </template>
    </gl-empty-state>
  </div>
</template>