Merge branch 'remove-vue-resource-from-remove-issue' into 'master'

Remove vue resource from remove issue

See merge request gitlab-org/gitlab-ce!32425
This commit is contained in:
Kushal Pandya 2019-08-30 08:25:52 +00:00
commit 5b613fb252
2 changed files with 9 additions and 4 deletions

View file

@ -1,10 +1,10 @@
<script>
import Vue from 'vue';
import axios from '~/lib/utils/axios_utils';
import Flash from '../../../flash';
import { __ } from '../../../locale';
import boardsStore from '../../stores/boards_store';
export default Vue.extend({
export default {
props: {
issue: {
type: Object,
@ -35,7 +35,7 @@ export default Vue.extend({
}
// Post the remove data
Vue.http.patch(this.updateUrl, data).catch(() => {
axios.patch(this.updateUrl, data).catch(() => {
Flash(__('Failed to remove issue from board, please try again.'));
lists.forEach(list => {
@ -71,7 +71,7 @@ export default Vue.extend({
return req;
},
},
});
};
</script>
<template>
<div class="block list">

View file

@ -0,0 +1,5 @@
---
title: Remove vue resource from remove issue
merge_request: 32425
author: Lee Tickett
type: other