Commit 1c4d7e39 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera

Merge branch 'nklick-agent-table-button' into 'master'

Change button to link on Agent table

See merge request gitlab-org/gitlab!55887
parents 995cb89f 959adad0
<script> <script>
import { GlButton, GlLink, GlTable } from '@gitlab/ui'; import { GlLink, GlTable } from '@gitlab/ui';
import { s__ } from '~/locale'; import { s__ } from '~/locale';
export default { export default {
components: { components: {
GlButton,
GlLink, GlLink,
GlTable, GlTable,
}, },
...@@ -33,15 +32,13 @@ export default { ...@@ -33,15 +32,13 @@ export default {
<template> <template>
<div> <div>
<div class="gl-display-block gl-text-right gl-my-4"> <div class="gl-display-block gl-text-right gl-my-3">
<gl-button <gl-link
category="primary"
href="https://docs.gitlab.com/ee/user/clusters/agent/#get-started-with-gitops-and-the-gitlab-agent" href="https://docs.gitlab.com/ee/user/clusters/agent/#get-started-with-gitops-and-the-gitlab-agent"
target="_blank" target="_blank"
variant="success"
> >
{{ s__('ClusterAgents|Connect your cluster with the GitLab Agent') }} {{ s__('ClusterAgents|Learn more about installing the GitLab Agent') }}
</gl-button> </gl-link>
</div> </div>
<gl-table :items="agents" :fields="fields" stacked="md" data-testid="cluster-agent-list-table"> <gl-table :items="agents" :fields="fields" stacked="md" data-testid="cluster-agent-list-table">
......
---
title: Change button to link on Agent table
merge_request: 55887
author:
type: other
import { GlButton, GlLink } from '@gitlab/ui'; import { GlLink } from '@gitlab/ui';
import { mount } from '@vue/test-utils'; import { mount } from '@vue/test-utils';
import AgentTable from 'ee/clusters_list/components/agent_table.vue'; import AgentTable from 'ee/clusters_list/components/agent_table.vue';
...@@ -32,8 +32,8 @@ describe('AgentTable', () => { ...@@ -32,8 +32,8 @@ describe('AgentTable', () => {
} }
}); });
it('displays header button', () => { it('displays header link', () => {
expect(wrapper.find(GlButton).text()).toBe('Connect your cluster with the GitLab Agent'); expect(wrapper.find(GlLink).text()).toBe('Learn more about installing the GitLab Agent');
}); });
describe('agent table', () => { describe('agent table', () => {
......
...@@ -6446,9 +6446,6 @@ msgstr "" ...@@ -6446,9 +6446,6 @@ msgstr ""
msgid "ClusterAgents|Configuration" msgid "ClusterAgents|Configuration"
msgstr "" msgstr ""
msgid "ClusterAgents|Connect your cluster with the GitLab Agent"
msgstr ""
msgid "ClusterAgents|Created by" msgid "ClusterAgents|Created by"
msgstr "" msgstr ""
...@@ -6470,6 +6467,9 @@ msgstr "" ...@@ -6470,6 +6467,9 @@ msgstr ""
msgid "ClusterAgents|Learn how to create an agent access token" msgid "ClusterAgents|Learn how to create an agent access token"
msgstr "" msgstr ""
msgid "ClusterAgents|Learn more about installing the GitLab Agent"
msgstr ""
msgid "ClusterAgents|Name" msgid "ClusterAgents|Name"
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment