diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 10:00:54 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 10:00:54 +0000 |
commit | 3cccd102ba543e02725d247893729e5c73b38295 (patch) | |
tree | f36a04ec38517f5deaaacb5acc7d949688d1e187 /app/assets/javascripts/clusters_list/components/agent_empty_state.vue | |
parent | 205943281328046ef7b4528031b90fbda70c75ac (diff) | |
download | gitlab-ce-3cccd102ba543e02725d247893729e5c73b38295.tar.gz |
Add latest changes from gitlab-org/gitlab@14-10-stable-eev14.10.0-rc42
Diffstat (limited to 'app/assets/javascripts/clusters_list/components/agent_empty_state.vue')
-rw-r--r-- | app/assets/javascripts/clusters_list/components/agent_empty_state.vue | 47 |
1 files changed, 11 insertions, 36 deletions
diff --git a/app/assets/javascripts/clusters_list/components/agent_empty_state.vue b/app/assets/javascripts/clusters_list/components/agent_empty_state.vue index f54f7b11414..2f45ef8a862 100644 --- a/app/assets/javascripts/clusters_list/components/agent_empty_state.vue +++ b/app/assets/javascripts/clusters_list/components/agent_empty_state.vue @@ -1,55 +1,30 @@ <script> -import { GlButton, GlEmptyState, GlLink, GlSprintf, GlModalDirective } from '@gitlab/ui'; +import { GlEmptyState, GlLink, GlSprintf } from '@gitlab/ui'; import { helpPagePath } from '~/helpers/help_page_helper'; -import { INSTALL_AGENT_MODAL_ID, I18N_AGENTS_EMPTY_STATE } from '../constants'; +import { I18N_AGENTS_EMPTY_STATE } from '../constants'; export default { i18n: I18N_AGENTS_EMPTY_STATE, - modalId: INSTALL_AGENT_MODAL_ID, agentDocsUrl: helpPagePath('user/clusters/agent/index'), components: { - GlButton, GlEmptyState, GlLink, GlSprintf, }, - directives: { - GlModalDirective, - }, inject: ['emptyStateImage'], - props: { - isChildComponent: { - default: false, - required: false, - type: Boolean, - }, - }, }; </script> <template> - <gl-empty-state :svg-path="emptyStateImage" title="" class="agents-empty-state"> - <template #description> - <p class="gl-text-left"> - <gl-sprintf :message="$options.i18n.introText"> - <template #link="{ content }"> - <gl-link :href="$options.agentDocsUrl"> - {{ content }} - </gl-link> - </template> - </gl-sprintf> - </p> - </template> - - <template #actions> - <gl-button - v-if="!isChildComponent" - v-gl-modal-directive="$options.modalId" - category="primary" - variant="confirm" - > - {{ $options.i18n.buttonText }} - </gl-button> + <gl-empty-state :svg-path="emptyStateImage" :svg-height="100"> + <template #title> + <gl-sprintf :message="$options.i18n.introText"> + <template #link="{ content }"> + <gl-link :href="$options.agentDocsUrl"> + {{ content }} + </gl-link> + </template> + </gl-sprintf> </template> </gl-empty-state> </template> |