summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/google_cloud/components/home.vue
blob: 8ef110dcf222255a280e24860a54764af67b94d3 (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
55
56
<script>
import { GlTabs, GlTab } from '@gitlab/ui';
import DeploymentsServiceTable from './deployments_service_table.vue';
import ServiceAccountsList from './service_accounts_list.vue';

export default {
  components: {
    GlTabs,
    GlTab,
    DeploymentsServiceTable,
    ServiceAccountsList,
  },
  props: {
    serviceAccounts: {
      type: Array,
      required: true,
    },
    createServiceAccountUrl: {
      type: String,
      required: true,
    },
    emptyIllustrationUrl: {
      type: String,
      required: true,
    },
    deploymentsCloudRunUrl: {
      type: String,
      required: true,
    },
    deploymentsCloudStorageUrl: {
      type: String,
      required: true,
    },
  },
};
</script>

<template>
  <gl-tabs>
    <gl-tab :title="__('Configuration')">
      <service-accounts-list
        class="gl-mx-4"
        :list="serviceAccounts"
        :create-url="createServiceAccountUrl"
        :empty-illustration-url="emptyIllustrationUrl"
      />
    </gl-tab>
    <gl-tab :title="__('Deployments')">
      <deployments-service-table
        :cloud-run-url="deploymentsCloudRunUrl"
        :cloud-storage-url="deploymentsCloudStorageUrl"
      />
    </gl-tab>
    <gl-tab :title="__('Services')" disabled />
  </gl-tabs>
</template>