Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9ddb0780
Commit
9ddb0780
authored
Oct 09, 2017
by
Simon Knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move store to ee
parent
eaff88b3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
19 deletions
+18
-19
app/assets/javascripts/boards/stores/boards_store.js
app/assets/javascripts/boards/stores/boards_store.js
+0
-19
ee/app/assets/javascripts/boards/stores/boards_store_ee.js
ee/app/assets/javascripts/boards/stores/boards_store_ee.js
+18
-0
No files found.
app/assets/javascripts/boards/stores/boards_store.js
View file @
9ddb0780
/* eslint-disable comma-dangle, space-before-function-paren, one-var, no-shadow, dot-notation, max-len */
/* global List */
import
_
from
'
underscore
'
;
import
Vue
from
'
vue
'
;
import
Cookies
from
'
js-cookie
'
;
import
boardsStoreEE
from
'
ee/boards/stores/boards_store_ee
'
;
import
{
getUrlParamsArray
}
from
'
../../lib/utils/common_utils
'
;
...
...
@@ -24,16 +23,6 @@ gl.issueBoards.BoardsStore = {
detail
:
{
issue
:
{},
},
boardConfig
:
{
id
:
false
,
name
:
''
,
labels
:
[],
milestone_id
:
undefined
,
milestone
:
{},
assignee
:
{},
assignee_id
:
''
,
weight
:
null
,
},
moving
:
{
issue
:
{},
list
:
{}
...
...
@@ -56,14 +45,6 @@ gl.issueBoards.BoardsStore = {
this
.
state
.
reload
=
false
;
this
.
state
.
currentPage
=
page
;
},
updateBoardConfig
(
board
=
{})
{
this
.
boardConfig
.
id
=
board
.
id
;
this
.
boardConfig
.
name
=
board
.
name
;
this
.
boardConfig
.
milestone
=
board
.
milestone
;
this
.
boardConfig
.
labels
=
board
.
labels
||
[];
this
.
boardConfig
.
assignee
=
board
.
assignee
||
{};
this
.
boardConfig
.
weight
=
board
.
weight
;
},
addList
(
listObj
,
defaultAvatar
)
{
const
list
=
new
List
(
listObj
,
defaultAvatar
);
this
.
state
.
lists
.
push
(
list
);
...
...
ee/app/assets/javascripts/boards/stores/boards_store_ee.js
View file @
9ddb0780
...
...
@@ -11,6 +11,24 @@ class BoardsStoreEE {
this
.
store
.
removePromotionState
=
()
=>
{
this
.
removePromotion
();
};
this
.
store
.
boardConfig
=
{
id
:
false
,
name
:
''
,
labels
:
[],
milestone
:
{},
assignee
:
{},
weight
:
null
,
};
this
.
store
.
updateBoardConfig
=
this
.
updateBoardConfig
;
}
updateBoardConfig
(
board
=
{})
{
this
.
boardConfig
.
id
=
board
.
id
;
this
.
boardConfig
.
name
=
board
.
name
;
this
.
boardConfig
.
milestone
=
board
.
milestone
;
this
.
boardConfig
.
labels
=
board
.
labels
||
[];
this
.
boardConfig
.
assignee
=
board
.
assignee
||
{};
this
.
boardConfig
.
weight
=
board
.
weight
;
}
shouldAddPromotionState
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment