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
b40b7cab
Commit
b40b7cab
authored
Aug 14, 2017
by
Felipe Artur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix js paths on board service to use absolute URL
parent
d3b1c5ec
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
app/assets/javascripts/boards/services/board_service.js
app/assets/javascripts/boards/services/board_service.js
+2
-2
app/controllers/projects/boards_controller.rb
app/controllers/projects/boards_controller.rb
+1
-1
app/helpers/boards_helper.rb
app/helpers/boards_helper.rb
+1
-1
ee/app/controllers/groups/boards_controller.rb
ee/app/controllers/groups/boards_controller.rb
+2
-2
No files found.
app/assets/javascripts/boards/services/board_service.js
View file @
b40b7cab
...
...
@@ -7,7 +7,7 @@ class BoardService {
this
.
boards
=
Vue
.
resource
(
`
${
boardsEndpoint
}
{/id}.json`
,
{},
{
issues
:
{
method
:
'
GET
'
,
url
:
`/boards/
${
boardId
}
/issues.json`
,
url
:
gon
.
gitlab_url
+
`/boards/
${
boardId
}
/issues.json`
,
}
});
this
.
lists
=
Vue
.
resource
(
`
${
listsEndpoint
}
{/id}`
,
{},
{
...
...
@@ -16,7 +16,7 @@ class BoardService {
url
:
`
${
listsEndpoint
}
/generate.json`
}
});
this
.
issue
=
Vue
.
resource
(
`/boards/
${
boardId
}
/issues{/id}`
,
{});
this
.
issue
=
Vue
.
resource
(
gon
.
gitlab_url
+
`/boards/
${
boardId
}
/issues{/id}`
,
{});
this
.
issues
=
Vue
.
resource
(
`
${
listsEndpoint
}
{/id}/issues`
,
{},
{
bulkUpdate
:
{
method
:
'
POST
'
,
...
...
app/controllers/projects/boards_controller.rb
View file @
b40b7cab
...
...
@@ -21,7 +21,7 @@ class Projects::BoardsController < Projects::ApplicationController
private
def
assign_endpoint_vars
@boards_endpoint
=
project_boards_
path
(
project
)
@boards_endpoint
=
project_boards_
url
(
project
)
@bulk_issues_path
=
bulk_update_project_issues_path
(
project
)
@namespace_path
=
project
.
namespace
.
path
@labels_endpoint
=
project_labels_path
(
project
)
...
...
app/helpers/boards_helper.rb
View file @
b40b7cab
...
...
@@ -8,7 +8,7 @@ module BoardsHelper
def
board_data
{
boards_endpoint:
@boards_endpoint
,
lists_endpoint:
board_lists_
path
(
board
),
lists_endpoint:
board_lists_
url
(
board
),
board_id:
board
.
id
,
board_milestone_title:
board
&
.
milestone
&
.
title
,
disabled:
"
#{
!
can?
(
current_user
,
:admin_list
,
current_board_parent
)
}
"
,
...
...
ee/app/controllers/groups/boards_controller.rb
View file @
b40b7cab
...
...
@@ -18,8 +18,8 @@ class Groups::BoardsController < Groups::ApplicationController
end
def
assign_endpoint_vars
@boards_endpoint
=
group_boards_
path
(
group
)
@boards_endpoint
=
group_boards_
url
(
group
)
@namespace_path
=
group
.
to_param
@labels_endpoint
=
group_labels_
path
(
group
)
@labels_endpoint
=
group_labels_
url
(
group
)
end
end
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