You need to sign in or sign up before continuing.
Move EE differences for `app/assets/javascripts/boards/stores/boards_store.js`
The file app/assets/javascripts/boards/stores/boards_store.js
has differences between CE and EE.
Diferences
diff --git a/home/yorickpeterse/Projects/gitlab/gdk-ce/gitlab/app/assets/javascripts/boards/stores/boards_store.js b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/app/assets/javascripts/boards/stores/boards_store.js
index 802796208c2..af721ba8238 100644
--- a/home/yorickpeterse/Projects/gitlab/gdk-ce/gitlab/app/assets/javascripts/boards/stores/boards_store.js
+++ b/home/yorickpeterse/Projects/gitlab/gdk-ee/gitlab/app/assets/javascripts/boards/stores/boards_store.js
@@ -5,6 +5,7 @@ import $ from 'jquery';
import _ from 'underscore';
import Vue from 'vue';
import Cookies from 'js-cookie';
+import BoardsStoreEE from 'ee/boards/stores/boards_store_ee';
import { getUrlParamsArray, parseBoolean } from '~/lib/utils/common_utils';
const boardsStore = {
@@ -12,7 +13,13 @@ const boardsStore = {
filter: {
path: '',
},
- state: {},
+ state: {
+ currentBoard: {
+ labels: [],
+ },
+ currentPage: '',
+ reload: false,
+ },
detail: {
issue: {},
},
@@ -27,6 +34,17 @@ const boardsStore = {
issue: {},
};
},
+ createNewListDropdownData() {
+ this.state.currentBoard = {
+ labels: [],
+ };
+ this.state.currentPage = '';
+ this.state.reload = false;
+ },
+ showPage(page) {
+ this.state.reload = false;
+ this.state.currentPage = page;
+ },
addList(listObj, defaultAvatar) {
const list = new List(listObj, defaultAvatar);
this.state.lists.push(list);
@@ -174,6 +192,8 @@ const boardsStore = {
},
};
+BoardsStoreEE.initEESpecific(boardsStore);
+
// hacks added in order to allow milestone_select to function properly
// TODO: remove these