Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
959adad0
Commit
959adad0
authored
Mar 24, 2021
by
Nicholas Klick
Committed by
Nicolò Maria Mezzopera
Mar 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change button to link on Agent table
parent
4aa1e927
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
14 deletions
+16
-14
ee/app/assets/javascripts/clusters_list/components/agent_table.vue
...sets/javascripts/clusters_list/components/agent_table.vue
+5
-8
ee/changelogs/unreleased/nklick-agent-table-button.yml
ee/changelogs/unreleased/nklick-agent-table-button.yml
+5
-0
ee/spec/frontend/clusters_list/components/agent_table_spec.js
...pec/frontend/clusters_list/components/agent_table_spec.js
+3
-3
locale/gitlab.pot
locale/gitlab.pot
+3
-3
No files found.
ee/app/assets/javascripts/clusters_list/components/agent_table.vue
View file @
959adad0
<
script
>
import
{
Gl
Button
,
Gl
Link
,
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"
>
...
...
ee/changelogs/unreleased/nklick-agent-table-button.yml
0 → 100644
View file @
959adad0
---
title
:
Change button to link on Agent table
merge_request
:
55887
author
:
type
:
other
ee/spec/frontend/clusters_list/components/agent_table_spec.js
View file @
959adad0
import
{
Gl
Button
,
Gl
Link
}
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
(
Gl
Button
).
text
()).
toBe
(
'
Connect your cluster with
the GitLab Agent
'
);
it
(
'
displays header
link
'
,
()
=>
{
expect
(
wrapper
.
find
(
Gl
Link
).
text
()).
toBe
(
'
Learn more about installing
the GitLab Agent
'
);
});
describe
(
'
agent table
'
,
()
=>
{
...
...
locale/gitlab.pot
View file @
959adad0
...
...
@@ -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 ""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment