Commit 5b613fb2 authored by Kushal Pandya's avatar Kushal Pandya

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

Remove vue resource from remove issue

See merge request gitlab-org/gitlab-ce!32425
parents 906e7337 ceb6742e
<script> <script>
import Vue from 'vue'; import axios from '~/lib/utils/axios_utils';
import Flash from '../../../flash'; import Flash from '../../../flash';
import { __ } from '../../../locale'; import { __ } from '../../../locale';
import boardsStore from '../../stores/boards_store'; import boardsStore from '../../stores/boards_store';
export default Vue.extend({ export default {
props: { props: {
issue: { issue: {
type: Object, type: Object,
...@@ -35,7 +35,7 @@ export default Vue.extend({ ...@@ -35,7 +35,7 @@ export default Vue.extend({
} }
// Post the remove data // 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.')); Flash(__('Failed to remove issue from board, please try again.'));
lists.forEach(list => { lists.forEach(list => {
...@@ -71,7 +71,7 @@ export default Vue.extend({ ...@@ -71,7 +71,7 @@ export default Vue.extend({
return req; return req;
}, },
}, },
}); };
</script> </script>
<template> <template>
<div class="block list"> <div class="block list">
......
---
title: Remove vue resource from remove issue
merge_request: 32425
author: Lee Tickett
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment