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>
import { GlButton, GlLink, GlTable } from '@gitlab/ui';
import { GlLink, GlTable } from '@gitlab/ui';
import { s__ } from '~/locale';
export default {
components: {
GlButton,
GlLink,
GlTable,
},
......@@ -33,15 +32,13 @@ export default {
<template>
<div>
<div class="gl-display-block gl-text-right gl-my-4">
<gl-button
category="primary"
<div class="gl-display-block gl-text-right gl-my-3">
<gl-link
href="https://docs.gitlab.com/ee/user/clusters/agent/#get-started-with-gitops-and-the-gitlab-agent"
target="_blank"
variant="success"
>
{{ s__('ClusterAgents|Connect your cluster with the GitLab Agent') }}
</gl-button>
{{ s__('ClusterAgents|Learn more about installing the GitLab Agent') }}
</gl-link>
</div>
<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 AgentTable from 'ee/clusters_list/components/agent_table.vue';
......@@ -32,8 +32,8 @@ describe('AgentTable', () => {
}
});
it('displays header button', () => {
expect(wrapper.find(GlButton).text()).toBe('Connect your cluster with the GitLab Agent');
it('displays header link', () => {
expect(wrapper.find(GlLink).text()).toBe('Learn more about installing the GitLab Agent');
});
describe('agent table', () => {
......
......@@ -6446,9 +6446,6 @@ msgstr ""
msgid "ClusterAgents|Configuration"
msgstr ""
msgid "ClusterAgents|Connect your cluster with the GitLab Agent"
msgstr ""
msgid "ClusterAgents|Created by"
msgstr ""
......@@ -6470,6 +6467,9 @@ msgstr ""
msgid "ClusterAgents|Learn how to create an agent access token"
msgstr ""
msgid "ClusterAgents|Learn more about installing the GitLab Agent"
msgstr ""
msgid "ClusterAgents|Name"
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