BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
ff5124ed
Unverified
Commit
ff5124ed
authored
Jan 06, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use anchor instead of form for reset caches button
parent
21a713f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
nav_controls.vue
app/assets/javascripts/pipelines/components/nav_controls.vue
+7
-3
nav_controls_spec.js
spec/javascripts/pipelines/nav_controls_spec.js
+1
-1
No files found.
app/assets/javascripts/pipelines/components/nav_controls.vue
View file @
ff5124ed
...
...
@@ -50,9 +50,13 @@ export default {
Get started with Pipelines
</a>
<form
:action=
"resetCachePath"
method=
"post"
>
<input
type=
"submit"
class=
"btn btn-default"
value=
"Clear runner caches"
/>
</form>
<a
data-method=
"post"
rel=
"nofollow"
:href=
"resetCachePath"
class=
"btn btn-default"
>
Clear runner caches
</a>
<a
:href=
"ciLintPath"
...
...
spec/javascripts/pipelines/nav_controls_spec.js
View file @
ff5124ed
...
...
@@ -58,7 +58,7 @@ describe('Pipelines Nav Controls', () => {
}).
$mount
();
expect
(
component
.
$el
.
querySelectorAll
(
'.btn-default'
)[
0
].
textContent
).
toContain
(
'Clear runner caches'
);
expect
(
component
.
$el
.
querySelector
(
'form'
).
getAttribute
(
'action
'
)).
toEqual
(
mockData
.
resetCachePath
);
expect
(
component
.
$el
.
querySelector
All
(
'.btn-default'
)[
0
].
getAttribute
(
'href
'
)).
toEqual
(
mockData
.
resetCachePath
);
});
it
(
'should render link for CI lint'
,
()
=>
{
...
...
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