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
Léo-Paul Géneau
gitlab-ce
Commits
72dfc763
Commit
72dfc763
authored
Jul 17, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IssueNotesRefactor: MR comment fixes.
parent
3c2d98f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
16 deletions
+18
-16
app/assets/javascripts/notes/components/issue_comment_form.vue
...ssets/javascripts/notes/components/issue_comment_form.vue
+8
-6
app/assets/javascripts/notes/components/issue_discussion.vue
app/assets/javascripts/notes/components/issue_discussion.vue
+8
-8
app/assets/javascripts/notes/components/issue_notes.vue
app/assets/javascripts/notes/components/issue_notes.vue
+2
-2
No files found.
app/assets/javascripts/notes/components/issue_comment_form.vue
View file @
72dfc763
...
...
@@ -175,17 +175,18 @@ export default {
</markdown-field>
<div
class=
"note-form-actions clearfix"
>
<div
class=
"pull-left btn-group append-right-10 comment-type-dropdown js-comment-type-dropdown"
>
<
input
<
button
@
click=
"handleSave()"
:disabled=
"!note.length"
:value=
"commentButtonTitle"
class=
"btn btn-nr btn-create comment-btn js-comment-button js-comment-submit-button"
type=
"submit"
/>
type=
"button"
>
{{
commentButtonTitle
}}
</button>
<button
:disabled=
"!note.length"
name=
"button"
type=
"button"
class=
"btn btn-nr comment-btn note-type-toggle js-note-new-discussion"
class=
"btn btn-nr comment-btn note-type-toggle js-note-new-discussion
dropdown-toggle
"
data-toggle=
"dropdown"
aria-label=
"Open comment type dropdown"
>
<i
...
...
@@ -193,7 +194,7 @@ export default {
class=
"fa fa-caret-down toggle-icon"
></i>
</button>
<ul
class=
"
dropdown-menu note-type-dropdown dropdown-open-top
"
>
class=
"
note-type-dropdown dropdown-open-top dropdown-menu
"
>
<li
:class=
"
{ 'item-selected': noteType === 'comment' }"
@click.prevent="setNoteType('comment')">
...
...
@@ -230,7 +231,8 @@ export default {
<a
@
click=
"handleSave(true)"
:class=
"
{'btn-reopen': !isIssueOpen, 'btn-close': isIssueOpen}"
class="btn btn-nr btn-comment">
class="btn btn-nr btn-comment btn-comment-and-close"
role="button">
{{
issueActionButtonTitle
}}
</a>
<a
...
...
app/assets/javascripts/notes/components/issue_discussion.vue
View file @
72dfc763
...
...
@@ -47,7 +47,7 @@ export default {
PlaceholderSystemNote
,
},
methods
:
{
component
(
note
)
{
component
Name
(
note
)
{
if
(
note
.
isPlaceholderNote
)
{
if
(
note
.
placeholderType
===
'
systemNote
'
)
{
return
PlaceholderSystemNote
;
...
...
@@ -140,7 +140,7 @@ export default {
<ul
class=
"notes"
>
<component
v-for=
"note in note.notes"
:is=
"component(note)"
:is=
"component
Name
(note)"
:note=
"componentData(note)"
key=
"note.id"
/>
</ul>
...
...
@@ -152,12 +152,12 @@ export default {
type=
"button"
class=
"btn btn-text-field"
title=
"Add a reply"
>
Reply...
</button>
<issue-note-form
v-if=
"isReplying"
saveButtonTitle=
"Comment"
:updateHandler=
"saveReply"
:cancelHandler=
"cancelReplyForm"
ref=
"noteForm"
/>
<issue-note-form
v-if=
"isReplying"
saveButtonTitle=
"Comment"
:updateHandler=
"saveReply"
:cancelHandler=
"cancelReplyForm"
ref=
"noteForm"
/>
<issue-note-signed-out-widget
v-if=
"!canReply"
/>
</div>
</div>
...
...
app/assets/javascripts/notes/components/issue_notes.vue
View file @
72dfc763
...
...
@@ -38,7 +38,7 @@ export default {
]),
},
methods
:
{
component
(
note
)
{
component
Name
(
note
)
{
if
(
note
.
isPlaceholderNote
)
{
if
(
note
.
placeholderType
===
'
systemNote
'
)
{
return
PlaceholderSystemNote
;
...
...
@@ -132,7 +132,7 @@ export default {
class=
"notes main-notes-list timeline"
>
<component
v-for=
"note in notes"
:is=
"component(note)"
:is=
"component
Name
(note)"
:note=
"componentData(note)"
:key=
"note.id"
/>
</ul>
...
...
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