BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
6fa533c4
Commit
6fa533c4
authored
Sep 06, 2017
by
Simon Knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
missing js change
parent
4a0010bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
board_service.js
app/assets/javascripts/boards/services/board_service.js
+10
-10
No files found.
app/assets/javascripts/boards/services/board_service.js
View file @
6fa533c4
...
@@ -3,21 +3,21 @@
...
@@ -3,21 +3,21 @@
import
Vue
from
'vue'
;
import
Vue
from
'vue'
;
class
BoardService
{
class
BoardService
{
constructor
(
root
,
bulkUpdatePath
,
boardId
)
{
constructor
(
{
boardsEndpoint
,
listsEndpoint
,
bulkUpdatePath
,
boardId
}
)
{
this
.
boards
=
Vue
.
resource
(
`
${
roo
t
}
{/id}.json`
,
{},
{
this
.
boards
=
Vue
.
resource
(
`
${
boardsEndpoin
t
}
{/id}.json`
,
{},
{
issues
:
{
issues
:
{
method
:
'GET'
,
method
:
'GET'
,
url
:
`
${
root
}
/
${
boardId
}
/issues.json`
url
:
`
${
gon
.
relative_url_root
}
/boards/
${
boardId
}
/issues.json`
,
}
}
});
});
this
.
lists
=
Vue
.
resource
(
`
${
root
}
/
${
boardId
}
/lists
{/id}`
,
{},
{
this
.
lists
=
Vue
.
resource
(
`
${
listsEndpoint
}
{/id}`
,
{},
{
generate
:
{
generate
:
{
method
:
'POST'
,
method
:
'POST'
,
url
:
`
${
root
}
/
${
boardId
}
/lists
/generate.json`
url
:
`
${
listsEndpoint
}
/generate.json`
}
}
});
});
this
.
issue
=
Vue
.
resource
(
`
${
root
}
/
${
boardId
}
/issues{/id}`
,
{});
this
.
issue
=
Vue
.
resource
(
`
${
gon
.
relative_url_root
}
/boards
/
${
boardId
}
/issues{/id}`
,
{});
this
.
issues
=
Vue
.
resource
(
`
${
root
}
/
${
boardId
}
/lists
{/id}/issues`
,
{},
{
this
.
issues
=
Vue
.
resource
(
`
${
listsEndpoint
}
{/id}/issues`
,
{},
{
bulkUpdate
:
{
bulkUpdate
:
{
method
:
'POST'
,
method
:
'POST'
,
url
:
bulkUpdatePath
,
url
:
bulkUpdatePath
,
...
@@ -60,12 +60,12 @@ class BoardService {
...
@@ -60,12 +60,12 @@ class BoardService {
return
this
.
issues
.
get
(
data
);
return
this
.
issues
.
get
(
data
);
}
}
moveIssue
(
id
,
from_list_id
=
null
,
to_list_id
=
null
,
move_before_i
id
=
null
,
move_after_i
id
=
null
)
{
moveIssue
(
id
,
from_list_id
=
null
,
to_list_id
=
null
,
move_before_i
d
=
null
,
move_after_
id
=
null
)
{
return
this
.
issue
.
update
({
id
},
{
return
this
.
issue
.
update
({
id
},
{
from_list_id
,
from_list_id
,
to_list_id
,
to_list_id
,
move_before_i
i
d
,
move_before_id
,
move_after_i
i
d
,
move_after_id
,
});
});
}
}
...
...
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