Commit 4bab999d authored by Marvin Karegyeya's avatar Marvin Karegyeya Committed by Martin Wortschack

remove all refrences to boardService in index.js

parent bc50a970
...@@ -16,7 +16,6 @@ import '~/boards/models/project'; ...@@ -16,7 +16,6 @@ import '~/boards/models/project';
import store from '~/boards/stores'; import store from '~/boards/stores';
import boardsStore from '~/boards/stores/boards_store'; import boardsStore from '~/boards/stores/boards_store';
import ModalStore from '~/boards/stores/modal_store'; import ModalStore from '~/boards/stores/modal_store';
import BoardService from 'ee_else_ce/boards/services/board_service';
import modalMixin from '~/boards/mixins/modal_mixins'; import modalMixin from '~/boards/mixins/modal_mixins';
import '~/boards/filters/due_date_filters'; import '~/boards/filters/due_date_filters';
import Board from 'ee_else_ce/boards/components/board'; import Board from 'ee_else_ce/boards/components/board';
...@@ -97,7 +96,6 @@ export default () => { ...@@ -97,7 +96,6 @@ export default () => {
bulkUpdatePath: this.bulkUpdatePath, bulkUpdatePath: this.bulkUpdatePath,
boardId: this.boardId, boardId: this.boardId,
}); });
gl.boardService = new BoardService();
boardsStore.rootPath = this.boardsEndpoint; boardsStore.rootPath = this.boardsEndpoint;
eventHub.$on('updateTokens', this.updateTokens); eventHub.$on('updateTokens', this.updateTokens);
...@@ -116,7 +114,7 @@ export default () => { ...@@ -116,7 +114,7 @@ export default () => {
this.filterManager.setup(); this.filterManager.setup();
boardsStore.disabled = this.disabled; boardsStore.disabled = this.disabled;
gl.boardService boardsStore
.all() .all()
.then(res => res.data) .then(res => res.data)
.then(lists => { .then(lists => {
...@@ -155,7 +153,8 @@ export default () => { ...@@ -155,7 +153,8 @@ export default () => {
newIssue.setFetchingState('subscriptions', true); newIssue.setFetchingState('subscriptions', true);
setWeigthFetchingState(newIssue, true); setWeigthFetchingState(newIssue, true);
setEpicFetchingState(newIssue, true); setEpicFetchingState(newIssue, true);
BoardService.getIssueInfo(sidebarInfoEndpoint) boardsStore
.getIssueInfo(sidebarInfoEndpoint)
.then(res => res.data) .then(res => res.data)
.then(data => { .then(data => {
const { const {
...@@ -211,7 +210,8 @@ export default () => { ...@@ -211,7 +210,8 @@ export default () => {
const { issue } = boardsStore.detail; const { issue } = boardsStore.detail;
if (issue.id === id && issue.toggleSubscriptionEndpoint) { if (issue.id === id && issue.toggleSubscriptionEndpoint) {
issue.setFetchingState('subscriptions', true); issue.setFetchingState('subscriptions', true);
BoardService.toggleIssueSubscription(issue.toggleSubscriptionEndpoint) boardsStore
.toggleIssueSubscription(issue.toggleSubscriptionEndpoint)
.then(() => { .then(() => {
issue.setFetchingState('subscriptions', false); issue.setFetchingState('subscriptions', false);
issue.updateData({ issue.updateData({
......
---
title: Removed all references of BoardService
merge_request: 20144
author: nuwe1
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