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

app.vue « screens « components « google_cloud « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 52c9b478916c1d93c1f117b5fc9fddcb010b0c33 (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
<script>
import { GlTab, GlTabs } from '@gitlab/ui';
import IncubationBanner from '../incubation_banner.vue';
import ServiceAccountsList from '../service_accounts_list.vue';

export default {
  components: { GlTab, GlTabs, IncubationBanner, ServiceAccountsList },
  props: {
    serviceAccounts: {
      type: Array,
      required: true,
    },
    createServiceAccountUrl: {
      type: String,
      required: true,
    },
    emptyIllustrationUrl: {
      type: String,
      required: true,
    },
  },
  methods: {
    feedbackUrl(template) {
      return `https://gitlab.com/gitlab-org/incubation-engineering/five-minute-production/meta/-/issues/new?issuable_template=${template}`;
    },
  },
};
</script>

<template>
  <div>
    <incubation-banner
      :share-feedback-url="feedbackUrl('general_feedback')"
      :report-bug-url="feedbackUrl('report_bug')"
      :feature-request-url="feedbackUrl('feature_request')"
    />
    <gl-tabs>
      <gl-tab :title="__('Configuration')">
        <service-accounts-list
          class="gl-mx-3"
          :list="serviceAccounts"
          :create-url="createServiceAccountUrl"
          :empty-illustration-url="emptyIllustrationUrl"
        />
      </gl-tab>
      <gl-tab :title="__('Deployments')" disabled />
      <gl-tab :title="__('Services')" disabled />
    </gl-tabs>
  </div>
</template>