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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
ff5124ed
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
app/assets/javascripts/pipelines/components/nav_controls.vue
app/assets/javascripts/pipelines/components/nav_controls.vue
+7
-3
spec/javascripts/pipelines/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