Render new issue link in failed job as a regular link instead of a UJS one

This commit is contained in:
Filipa Lacerda 2017-08-10 11:01:25 +01:00
parent 188181b780
commit afae4cb2ff
3 changed files with 7 additions and 3 deletions

View File

@ -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',
});
}

View File

@ -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"

View File

@ -0,0 +1,4 @@
---
title: Fixes new issue button for failed job returning 404
merge_request:
author: