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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
a983583a
Commit
a983583a
authored
Apr 05, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set `noteable_type` to use in notesApp
parent
223eeae1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
app/views/projects/issues/_discussion.html.haml
app/views/projects/issues/_discussion.html.haml
+1
-0
app/views/projects/merge_requests/show.html.haml
app/views/projects/merge_requests/show.html.haml
+1
-0
No files found.
app/views/projects/issues/_discussion.html.haml
View file @
a983583a
...
...
@@ -8,4 +8,5 @@
%section
.js-vue-notes-event
#js-vue-notes
{
data:
{
notes_data:
notes_data
(
@issue
),
noteable_data:
serialize_issuable
(
@issue
),
noteable_type:
'issue'
,
current_user_data:
UserSerializer
.
new
.
represent
(
current_user
,
only_path:
true
).
to_json
}
}
app/views/projects/merge_requests/show.html.haml
View file @
a983583a
...
...
@@ -80,6 +80,7 @@
-
if
has_vue_discussions_cookie?
#js-vue-mr-discussions
{
data:
{
notes_data:
notes_data
(
@merge_request
),
noteable_data:
serialize_issuable
(
@merge_request
),
noteable_type:
'merge_request'
,
current_user_data:
UserSerializer
.
new
.
represent
(
current_user
).
to_json
}
}
#commits
.commits.tab-pane
...
...
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