Render new issue link in failed job as a regular link instead of a UJS one
This commit is contained in:
parent
188181b780
commit
afae4cb2ff
|
@ -40,7 +40,7 @@
|
|||
label: 'New issue',
|
||||
path: this.job.new_issue_path,
|
||||
cssClass: 'js-new-issue btn btn-new btn-inverted visible-md-block visible-lg-block',
|
||||
type: 'ujs-link',
|
||||
type: 'link',
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -120,7 +120,7 @@ export default {
|
|||
</a>
|
||||
|
||||
<a
|
||||
v-if="action.type === 'ujs-link'"
|
||||
v-else-if="action.type === 'ujs-link'"
|
||||
:href="action.path"
|
||||
data-method="post"
|
||||
rel="nofollow"
|
||||
|
@ -129,7 +129,7 @@ export default {
|
|||
</a>
|
||||
|
||||
<button
|
||||
v-else="action.type === 'button'"
|
||||
v-else-if="action.type === 'button'"
|
||||
@click="onClickAction(action)"
|
||||
:disabled="action.isLoading"
|
||||
:class="action.cssClass"
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Fixes new issue button for failed job returning 404
|
||||
merge_request:
|
||||
author:
|
Loading…
Reference in New Issue