debian-mirror-gitlab/app/assets/javascripts/admin/cohorts/components/usage_ping_disabled.vue

49 lines
1.1 KiB
Vue
Raw Normal View History

2020-11-24 15:15:51 +05:30
<script>
import { GlEmptyState, GlSprintf, GlLink } from '@gitlab/ui';
export default {
components: {
GlEmptyState,
GlSprintf,
GlLink,
},
inject: {
svgPath: {
2021-01-03 14:25:43 +05:30
default: '',
2020-11-24 15:15:51 +05:30
},
docsLink: {
2021-01-03 14:25:43 +05:30
default: '',
2020-11-24 15:15:51 +05:30
},
primaryButtonPath: {
2021-01-03 14:25:43 +05:30
default: '',
2020-11-24 15:15:51 +05:30
},
},
};
</script>
<template>
<gl-empty-state
class="js-empty-state"
:title="__('Activate user activity analysis')"
:svg-path="svgPath"
:primary-button-text="__('Turn on usage ping')"
:primary-button-link="primaryButtonPath"
>
<template #description>
<gl-sprintf
:message="
__(
'Turn on %{strongStart}usage ping%{strongEnd} to activate analysis of user activity, known as %{docLinkStart}Cohorts%{docLinkEnd}.',
)
"
>
2021-03-08 18:12:59 +05:30
<template #docLink="{ content }">
2020-11-24 15:15:51 +05:30
<gl-link :href="docsLink" target="_blank">{{ content }}</gl-link>
</template>
<template #strong="{ content }"
><strong>{{ content }}</strong></template
>
</gl-sprintf>
</template>
</gl-empty-state>
</template>