debian-mirror-gitlab/app/assets/javascripts/clusters/components/new_cluster.vue

35 lines
872 B
Vue
Raw Normal View History

2020-11-24 15:15:51 +05:30
<script>
import { GlLink, GlSprintf } from '@gitlab/ui';
import { mapState } from 'vuex';
import { s__ } from '~/locale';
export default {
i18n: {
2022-05-07 20:08:51 +05:30
title: s__('ClusterIntegration|Enter your Kubernetes cluster certificate details'),
2020-11-24 15:15:51 +05:30
information: s__(
2022-05-07 20:08:51 +05:30
'ClusterIntegration|Enter details about your cluster. %{linkStart}How do I use a certificate to connect to my cluster?%{linkEnd}',
2020-11-24 15:15:51 +05:30
),
},
components: {
GlLink,
GlSprintf,
},
computed: {
...mapState(['clusterConnectHelpPath']),
},
};
</script>
<template>
2022-05-07 20:08:51 +05:30
<div class="gl-pt-4">
2020-11-24 15:15:51 +05:30
<h4>{{ $options.i18n.title }}</h4>
<p>
<gl-sprintf :message="$options.i18n.information">
<template #link="{ content }">
<gl-link :href="clusterConnectHelpPath" target="_blank">{{ content }}</gl-link>
</template>
</gl-sprintf>
</p>
</div>
</template>