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
7a251207
Commit
7a251207
authored
Jul 28, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ci skip] Emit events up to prevent accessing refs of refs
parent
b45b604d
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
63 additions
and
71 deletions
+63
-71
app/assets/javascripts/notes/components/issue_comment_form.vue
...ssets/javascripts/notes/components/issue_comment_form.vue
+4
-7
app/assets/javascripts/notes/components/issue_note.vue
app/assets/javascripts/notes/components/issue_note.vue
+13
-14
app/assets/javascripts/notes/components/issue_note_actions.vue
...ssets/javascripts/notes/components/issue_note_actions.vue
+6
-5
app/assets/javascripts/notes/components/issue_note_awards_list.vue
...s/javascripts/notes/components/issue_note_awards_list.vue
+7
-9
app/assets/javascripts/notes/components/issue_note_body.vue
app/assets/javascripts/notes/components/issue_note_body.vue
+13
-9
app/assets/javascripts/notes/components/issue_note_form.vue
app/assets/javascripts/notes/components/issue_note_form.vue
+9
-17
app/assets/javascripts/notes/components/issue_note_header.vue
...assets/javascripts/notes/components/issue_note_header.vue
+1
-1
app/assets/javascripts/notes/components/issue_notes_app.vue
app/assets/javascripts/notes/components/issue_notes_app.vue
+1
-3
app/assets/javascripts/notes/components/issue_placeholder_system_note.vue
...cripts/notes/components/issue_placeholder_system_note.vue
+1
-1
app/assets/javascripts/notes/index.js
app/assets/javascripts/notes/index.js
+2
-0
app/assets/javascripts/notes/stores/actions.js
app/assets/javascripts/notes/stores/actions.js
+4
-4
app/helpers/issuables_helper.rb
app/helpers/issuables_helper.rb
+0
-1
app/views/projects/issues/_discussion.html.haml
app/views/projects/issues/_discussion.html.haml
+2
-0
No files found.
app/assets/javascripts/notes/components/issue_comment_form.vue
View file @
7a251207
...
@@ -10,12 +10,12 @@
...
@@ -10,12 +10,12 @@
export
default
{
export
default
{
data
()
{
data
()
{
const
{
getUserData
,
getIssueData
}
=
this
.
$store
.
getters
;
const
{
getUserData
,
getIssueData
,
getNotesData
}
=
this
.
$store
.
getters
;
return
{
return
{
note
:
''
,
note
:
''
,
markdownDocsUrl
:
get
Issue
Data
.
markdownDocs
,
markdownDocsUrl
:
get
Notes
Data
.
markdownDocs
,
quickActionsDocsUrl
:
get
Issue
Data
.
quickActionsDocs
,
quickActionsDocsUrl
:
get
Notes
Data
.
quickActionsDocs
,
markdownPreviewUrl
:
getIssueData
.
preview_note_path
,
markdownPreviewUrl
:
getIssueData
.
preview_note_path
,
noteType
:
constants
.
COMMENT
,
noteType
:
constants
.
COMMENT
,
issueState
:
getIssueData
.
state
,
issueState
:
getIssueData
.
state
,
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
this
.
handleError
();
this
.
handleError
();
}
}
}
else
{
}
else
{
this
.
discard
(
);
return
Flash
(
'
Something went wrong while adding your comment. Please try again.
'
);
}
}
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
...
@@ -126,9 +126,6 @@
...
@@ -126,9 +126,6 @@
setNoteType
(
type
)
{
setNoteType
(
type
)
{
this
.
noteType
=
type
;
this
.
noteType
=
type
;
},
},
handleError
()
{
Flash
(
'
Something went wrong while adding your comment. Please try again.
'
);
},
editMyLastNote
()
{
editMyLastNote
()
{
if
(
this
.
note
===
''
)
{
if
(
this
.
note
===
''
)
{
const
myLastNoteId
=
$
(
'
.js-my-note
'
).
last
().
attr
(
'
id
'
);
const
myLastNoteId
=
$
(
'
.js-my-note
'
).
last
().
attr
(
'
id
'
);
...
...
app/assets/javascripts/notes/components/issue_note.vue
View file @
7a251207
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
return
{
return
{
isEditing
:
false
,
isEditing
:
false
,
isDeleting
:
false
,
isDeleting
:
false
,
currentUserId
:
window
.
gon
.
current_user_id
,
};
};
},
},
components
:
{
components
:
{
...
@@ -38,12 +39,12 @@
...
@@ -38,12 +39,12 @@
return
{
return
{
'
is-editing
'
:
this
.
isEditing
,
'
is-editing
'
:
this
.
isEditing
,
'
disabled-content
'
:
this
.
isDeleting
,
'
disabled-content
'
:
this
.
isDeleting
,
'
js-my-note
'
:
this
.
author
.
id
===
window
.
gon
.
current_user_i
d
,
'
js-my-note
'
:
this
.
author
.
id
===
this
.
currentUserI
d
,
target
:
this
.
targetNoteHash
===
this
.
noteAnchorId
,
target
:
this
.
targetNoteHash
===
this
.
noteAnchorId
,
};
};
},
},
canReportAsAbuse
()
{
canReportAsAbuse
()
{
return
this
.
note
.
report_abuse_path
&&
this
.
author
.
id
!==
window
.
gon
.
current_user_i
d
;
return
this
.
note
.
report_abuse_path
&&
this
.
author
.
id
!==
this
.
currentUserI
d
;
},
},
noteAnchorId
()
{
noteAnchorId
()
{
return
`note_
${
this
.
note
.
id
}
`
;
return
`note_
${
this
.
note
.
id
}
`
;
...
@@ -59,8 +60,8 @@
...
@@ -59,8 +60,8 @@
this
.
isEditing
=
true
;
this
.
isEditing
=
true
;
},
},
deleteHandler
()
{
deleteHandler
()
{
const
msg
=
'
Are you sure you want to delete this list?
'
;
// eslint-disable-next-line no-alert
const
isConfirmed
=
confirm
(
msg
);
// eslint-disable-line
const
isConfirmed
=
confirm
(
'
Are you sure you want to delete this list?
'
);
if
(
isConfirmed
)
{
if
(
isConfirmed
)
{
this
.
isDeleting
=
true
;
this
.
isDeleting
=
true
;
...
@@ -88,17 +89,15 @@
...
@@ -88,17 +89,15 @@
this
.
updateNote
(
data
)
this
.
updateNote
(
data
)
.
then
(()
=>
{
.
then
(()
=>
{
this
.
isEditing
=
false
;
this
.
isEditing
=
false
;
// TODO: this could be moved down, by setting a prop
$
(
this
.
$refs
.
noteBody
.
$el
).
renderGFM
();
$
(
this
.
$refs
.
noteBody
.
$el
).
renderGFM
();
})
})
.
catch
(()
=>
Flash
(
'
Something went wrong while editing your comment. Please try again.
'
));
.
catch
(()
=>
Flash
(
'
Something went wrong while editing your comment. Please try again.
'
));
},
},
formCancelHandler
(
shouldConfirm
)
{
formCancelHandler
(
shouldConfirm
,
isDirty
)
{
if
(
shouldConfirm
&&
this
.
$refs
.
noteBody
.
$refs
.
noteForm
.
isDirty
)
{
if
(
shouldConfirm
&&
isDirty
)
{
const
msg
=
'
Are you sure you want to cancel editing this comment?
'
;
// eslint-disable-next-line no-alert
const
isConfirmed
=
confirm
(
msg
);
// eslint-disable-line
if
(
!
confirm
(
'
Are you sure you want to cancel editing this comment?
'
))
return
;
if
(
!
isConfirmed
)
{
return
;
}
}
}
this
.
isEditing
=
false
;
this
.
isEditing
=
false
;
...
@@ -135,7 +134,7 @@
...
@@ -135,7 +134,7 @@
:author=
"author"
:author=
"author"
:created-at=
"note.created_at"
:created-at=
"note.created_at"
:note-id=
"note.id"
:note-id=
"note.id"
action
T
ext=
"commented"
action
-t
ext=
"commented"
/>
/>
<issue-note-actions
<issue-note-actions
:author-id=
"author.id"
:author-id=
"author.id"
...
@@ -153,8 +152,8 @@
...
@@ -153,8 +152,8 @@
:note=
"note"
:note=
"note"
:can-edit=
"note.current_user.can_edit"
:can-edit=
"note.current_user.can_edit"
:is-editing=
"isEditing"
:is-editing=
"isEditing"
:form-update-handler
=
"formUpdateHandler"
@
handleFormUpdate
=
"formUpdateHandler"
:form-cancel-handler
=
"formCancelHandler"
@
cancelFormEdition
=
"formCancelHandler"
ref=
"noteBody"
ref=
"noteBody"
/>
/>
</div>
</div>
...
...
app/assets/javascripts/notes/components/issue_note_actions.vue
View file @
7a251207
...
@@ -53,6 +53,7 @@
...
@@ -53,6 +53,7 @@
emojiSmiling
,
emojiSmiling
,
emojiSmile
,
emojiSmile
,
emojiSmiley
,
emojiSmiley
,
currentUserId
:
window
.
gon
.
current_user_id
,
};
};
},
},
components
:
{
components
:
{
...
@@ -60,13 +61,13 @@
...
@@ -60,13 +61,13 @@
},
},
computed
:
{
computed
:
{
shouldShowActionsDropdown
()
{
shouldShowActionsDropdown
()
{
return
window
.
gon
.
current_user_i
d
&&
(
this
.
canEdit
||
this
.
canReportAsAbuse
);
return
this
.
currentUserI
d
&&
(
this
.
canEdit
||
this
.
canReportAsAbuse
);
},
},
canAddAwardEmoji
()
{
canAddAwardEmoji
()
{
return
window
.
gon
.
current_user_i
d
;
return
this
.
currentUserI
d
;
},
},
isAuthoredBy
Me
()
{
isAuthoredBy
CurrentUser
()
{
return
this
.
authorId
===
window
.
gon
.
current_user_id
;
return
this
.
authorId
===
this
.
currentUserId
},
},
},
},
};
};
...
@@ -82,7 +83,7 @@
...
@@ -82,7 +83,7 @@
<a
<a
v-tooltip
v-tooltip
v-if=
"canAddAwardEmoji"
v-if=
"canAddAwardEmoji"
:class=
"
{ 'js-user-authored': isAuthoredBy
Me
}"
:class=
"
{ 'js-user-authored': isAuthoredBy
CurrentUser
}"
class="note-action-button note-emoji-button js-add-award js-note-emoji"
class="note-action-button note-emoji-button js-add-award js-note-emoji"
data-position="right"
data-position="right"
href="#"
href="#"
...
...
app/assets/javascripts/notes/components/issue_note_awards_list.vue
View file @
7a251207
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
},
},
getAwardClassBindings
(
awardList
,
awardName
)
{
getAwardClassBindings
(
awardList
,
awardName
)
{
return
{
return
{
active
:
this
.
amIAwarded
(
awardList
),
active
:
this
.
hasReactionByCurrentUser
(
awardList
),
disabled
:
!
this
.
canInteractWithEmoji
(
awardList
,
awardName
),
disabled
:
!
this
.
canInteractWithEmoji
(
awardList
,
awardName
),
};
};
},
},
...
@@ -107,18 +107,16 @@
...
@@ -107,18 +107,16 @@
return
this
.
canAward
&&
isAllowed
;
return
this
.
canAward
&&
isAllowed
;
},
},
amIAwarded
(
awardList
)
{
hasReactionByCurrentUser
(
awardList
)
{
const
isAwarded
=
awardList
.
filter
(
award
=>
award
.
user
.
id
===
this
.
myUserId
);
return
awardList
.
filter
(
award
=>
award
.
user
.
id
===
this
.
myUserId
).
length
;
return
isAwarded
.
length
;
},
},
awardTitle
(
awardsList
)
{
awardTitle
(
awardsList
)
{
const
amIAwarded
=
this
.
amIAwarded
(
awardsList
);
const
hasReactionByCurrentUser
=
this
.
hasReactionByCurrentUser
(
awardsList
);
const
TOOLTIP_NAME_COUNT
=
amIAwarded
?
9
:
10
;
const
TOOLTIP_NAME_COUNT
=
hasReactionByCurrentUser
?
9
:
10
;
let
awardList
=
awardsList
;
let
awardList
=
awardsList
;
// Filter myself from list if I am awarded.
// Filter myself from list if I am awarded.
if
(
amIAwarded
)
{
if
(
hasReactionByCurrentUser
)
{
awardList
=
awardList
.
filter
(
award
=>
award
.
user
.
id
!==
this
.
myUserId
);
awardList
=
awardList
.
filter
(
award
=>
award
.
user
.
id
!==
this
.
myUserId
);
}
}
...
@@ -129,7 +127,7 @@
...
@@ -129,7 +127,7 @@
const
remainingAwardList
=
awardList
.
slice
(
TOOLTIP_NAME_COUNT
,
awardList
.
length
);
const
remainingAwardList
=
awardList
.
slice
(
TOOLTIP_NAME_COUNT
,
awardList
.
length
);
// Add myself to the begining of the list so title will start with You.
// Add myself to the begining of the list so title will start with You.
if
(
amIAwarded
)
{
if
(
hasReactionByCurrentUser
)
{
namesToShow
.
unshift
(
'
You
'
);
namesToShow
.
unshift
(
'
You
'
);
}
}
...
...
app/assets/javascripts/notes/components/issue_note_body.vue
View file @
7a251207
...
@@ -51,11 +51,12 @@
...
@@ -51,11 +51,12 @@
});
});
}
}
},
},
handleFormUpdate
()
{
handleFormUpdate
(
note
)
{
this
.
formUpdateHandler
({
this
.
$emit
(
'
handleFormUpdate
'
,
note
);
note
:
this
.
$refs
.
noteForm
.
note
,
});
},
},
formCancelHandler
(
shouldConfirm
,
isDirty
)
{
this
.
$emit
(
'
cancelFormEdition
'
,
shouldConfirm
,
isDirty
);
}
},
},
mounted
()
{
mounted
()
{
this
.
renderGFM
();
this
.
renderGFM
();
...
@@ -78,10 +79,11 @@
...
@@ -78,10 +79,11 @@
<issue-note-form
<issue-note-form
v-if=
"isEditing"
v-if=
"isEditing"
ref=
"noteForm"
ref=
"noteForm"
:update-handler
=
"handleFormUpdate"
@
handleFormUpdate
=
"handleFormUpdate"
:cancel-handler
=
"formCancelHandler"
@
cancelFormEdition
=
"formCancelHandler"
:note-body=
"noteBody"
:note-body=
"noteBody"
:note-id=
"note.id"
/>
:note-id=
"note.id"
/>
<textarea
<textarea
v-if=
"canEdit"
v-if=
"canEdit"
v-model=
"note.note"
v-model=
"note.note"
...
@@ -91,12 +93,14 @@
...
@@ -91,12 +93,14 @@
v-if=
"note.last_edited_by"
v-if=
"note.last_edited_by"
:edited-at=
"note.last_edited_at"
:edited-at=
"note.last_edited_at"
:edited-by=
"note.last_edited_by"
:edited-by=
"note.last_edited_by"
actionText=
"Edited"
/>
actionText=
"Edited"
/>
<issue-note-awards-list
<issue-note-awards-list
v-if=
"note.award_emoji.length"
v-if=
"note.award_emoji.length"
:note-id=
"note.id"
:note-id=
"note.id"
:note-author-id=
"note.author.id"
:note-author-id=
"note.author.id"
:awards=
"note.award_emoji"
:awards=
"note.award_emoji"
:toggle-award-path=
"note.toggle_award_path"
/>
:toggle-award-path=
"note.toggle_award_path"
/>
</div>
</div>
</
template
>
</
template
>
app/assets/javascripts/notes/components/issue_note_form.vue
View file @
7a251207
...
@@ -13,14 +13,6 @@
...
@@ -13,14 +13,6 @@
type
:
Number
,
type
:
Number
,
required
:
false
,
required
:
false
,
},
},
updateHandler
:
{
type
:
Function
,
required
:
true
,
},
cancelHandler
:
{
type
:
Function
,
required
:
true
,
},
saveButtonTitle
:
{
saveButtonTitle
:
{
type
:
String
,
type
:
String
,
required
:
false
,
required
:
false
,
...
@@ -42,18 +34,13 @@
...
@@ -42,18 +34,13 @@
markdownField
,
markdownField
,
},
},
computed
:
{
computed
:
{
isDirty
()
{
return
this
.
initialNote
!==
this
.
note
;
},
noteHash
()
{
noteHash
()
{
return
`#note_
${
this
.
noteId
}
`
;
return
`#note_
${
this
.
noteId
}
`
;
},
},
},
},
methods
:
{
methods
:
{
handleUpdate
()
{
handleUpdate
()
{
this
.
updateHandler
({
this
.
$emit
(
'
handleFormUpdate
'
,
note
);
note
:
this
.
note
,
});
},
},
editMyLastNote
()
{
editMyLastNote
()
{
if
(
this
.
note
===
''
)
{
if
(
this
.
note
===
''
)
{
...
@@ -67,6 +54,10 @@
...
@@ -67,6 +54,10 @@
}
}
}
}
},
},
cancelHandler
(
shouldConfirm
=
false
)
{
// Sends information about confirm message and if the textarea has changed
this
.
$emit
(
'
cancelFormEdition
'
,
shouldConfirm
,
this
.
initialNote
!==
this
.
note
);
}
},
},
mounted
()
{
mounted
()
{
this
.
$refs
.
textarea
.
focus
();
this
.
$refs
.
textarea
.
focus
();
...
@@ -95,7 +86,9 @@
...
@@ -95,7 +86,9 @@
rel=
"noopener noreferrer"
>
updated comment
</a>
rel=
"noopener noreferrer"
>
updated comment
</a>
to ensure information is not lost.
to ensure information is not lost.
</div>
</div>
<form
class=
"edit-note common-note-form"
>
<form
@
submit=
"handleUpdate"
class=
"edit-note common-note-form"
>
<markdown-field
<markdown-field
:markdown-preview-url=
"markdownPreviewUrl"
:markdown-preview-url=
"markdownPreviewUrl"
:markdown-docs=
"markdownDocsUrl"
:markdown-docs=
"markdownDocsUrl"
...
@@ -118,8 +111,7 @@
...
@@ -118,8 +111,7 @@
</markdown-field>
</markdown-field>
<div
class=
"note-form-actions clearfix"
>
<div
class=
"note-form-actions clearfix"
>
<button
<button
@
click=
"handleUpdate"
type=
"submit"
type=
"button"
class=
"btn btn-nr btn-save"
>
class=
"btn btn-nr btn-save"
>
{{
saveButtonTitle
}}
{{
saveButtonTitle
}}
</button>
</button>
...
...
app/assets/javascripts/notes/components/issue_note_header.vue
View file @
7a251207
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
@
click=
"updateTargetNoteHash"
>
@
click=
"updateTargetNoteHash"
>
<time-ago-tooltip
<time-ago-tooltip
:time=
"createdAt"
:time=
"createdAt"
tooltip
P
lacement=
"bottom"
tooltip
-p
lacement=
"bottom"
/>
/>
</a>
</a>
</span>
</span>
...
...
app/assets/javascripts/notes/components/issue_notes_app.vue
View file @
7a251207
...
@@ -47,13 +47,11 @@
...
@@ -47,13 +47,11 @@
},
},
computed
:
{
computed
:
{
...
mapGetters
([
...
mapGetters
([
'
notes
'
,
'
getNotesDataByProp
'
,
'
getNotesDataByProp
'
,
]),
]),
},
},
methods
:
{
methods
:
{
...
mapGetters
([
'
getNotesDataByProp
'
,
]),
...
mapActions
({
...
mapActions
({
actionFetchNotes
:
'
fetchNotes
'
,
actionFetchNotes
:
'
fetchNotes
'
,
poll
:
'
poll
'
,
poll
:
'
poll
'
,
...
...
app/assets/javascripts/notes/components/issue_placeholder_system_note.vue
View file @
7a251207
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<li
class=
"note system-note timeline-entry being-posted fade-in-half"
>
<li
class=
"note system-note timeline-entry being-posted fade-in-half"
>
<div
class=
"timeline-entry-inner"
>
<div
class=
"timeline-entry-inner"
>
<div
class=
"timeline-content"
>
<div
class=
"timeline-content"
>
<
i>
{{
note
.
body
}}
</i
>
<
em>
{{
note
.
body
}}
</em
>
</div>
</div>
</div>
</div>
</li>
</li>
...
...
app/assets/javascripts/notes/index.js
View file @
7a251207
...
@@ -18,6 +18,8 @@ document.addEventListener('DOMContentLoaded', () => new Vue({
...
@@ -18,6 +18,8 @@ document.addEventListener('DOMContentLoaded', () => new Vue({
newSessionPath
:
notesDataset
.
newSessionPath
,
newSessionPath
:
notesDataset
.
newSessionPath
,
registerPath
:
notesDataset
.
registerPath
,
registerPath
:
notesDataset
.
registerPath
,
notesPath
:
notesDataset
.
notesPath
,
notesPath
:
notesDataset
.
notesPath
,
markdownDocs
:
notesDataset
.
markdownDocs
,
quickActionsDocs
:
notesDataset
.
quickActionsDocs
,
},
},
};
};
},
},
...
...
app/assets/javascripts/notes/stores/actions.js
View file @
7a251207
...
@@ -175,17 +175,17 @@ export const toggleAward = ({ commit, getters, dispatch }, data) => {
...
@@ -175,17 +175,17 @@ export const toggleAward = ({ commit, getters, dispatch }, data) => {
constants
.
EMOJI_THUMBSUP
;
constants
.
EMOJI_THUMBSUP
;
const
targetNote
=
getters
.
notesById
[
noteId
];
const
targetNote
=
getters
.
notesById
[
noteId
];
let
noteHasAward
=
false
;
let
noteHasAward
ByCurrentUser
=
false
;
targetNote
.
award_emoji
.
forEach
((
a
)
=>
{
targetNote
.
award_emoji
.
forEach
((
a
)
=>
{
if
(
a
.
name
===
counterAward
&&
a
.
user
.
id
===
window
.
gon
.
current_user_id
)
{
if
(
a
.
name
===
counterAward
&&
a
.
user
.
id
===
window
.
gon
.
current_user_id
)
{
noteHasAward
=
true
;
noteHasAward
ByCurrentUser
=
true
;
}
}
});
});
if
(
noteHasAward
)
{
if
(
noteHasAward
ByCurrentUser
)
{
Object
.
assign
(
data
,
{
awardName
:
counterAward
});
Object
.
assign
(
data
,
{
awardName
:
counterAward
});
Object
.
assign
(
data
,
{
kipMutalityCheck
:
true
});
Object
.
assign
(
data
,
{
s
kipMutalityCheck
:
true
});
dispatch
(
types
.
TOGGLE_AWARD
,
data
);
dispatch
(
types
.
TOGGLE_AWARD
,
data
);
}
}
...
...
app/helpers/issuables_helper.rb
View file @
7a251207
...
@@ -214,7 +214,6 @@ module IssuablesHelper
...
@@ -214,7 +214,6 @@ module IssuablesHelper
initialDescriptionHtml:
markdown_field
(
issuable
,
:description
),
initialDescriptionHtml:
markdown_field
(
issuable
,
:description
),
initialDescriptionText:
issuable
.
description
,
initialDescriptionText:
issuable
.
description
,
initialTaskStatus:
issuable
.
task_status
,
initialTaskStatus:
issuable
.
task_status
,
quickActionsDocs:
help_page_path
(
'user/project/quick_actions'
),
}
}
data
.
merge!
(
updated_at_by
(
issuable
))
data
.
merge!
(
updated_at_by
(
issuable
))
...
...
app/views/projects/issues/_discussion.html.haml
View file @
7a251207
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
#js-vue-notes
{
data:
{
discussions_path:
discussions_namespace_project_issue_path
(
@project
.
namespace
,
@project
,
@issue
,
format: :json
),
#js-vue-notes
{
data:
{
discussions_path:
discussions_namespace_project_issue_path
(
@project
.
namespace
,
@project
,
@issue
,
format: :json
),
register_path:
"#{new_session_path(:user, redirect_to_referer: 'yes')}#register-pane"
,
register_path:
"#{new_session_path(:user, redirect_to_referer: 'yes')}#register-pane"
,
new_session_path:
new_session_path
(
:user
,
redirect_to_referer:
'yes'
),
new_session_path:
new_session_path
(
:user
,
redirect_to_referer:
'yes'
),
markdown_docs:
help_page_path
(
'user/markdown'
),
quick_actions_docs:
help_page_path
(
'user/project/quick_actions'
),
notes_path:
'
#
{
notes_url
}?
full_data
=
1
'
,
notes_path:
'
#
{
notes_url
}?
full_data
=
1
'
,
last_fetched_at:
Time
.
now
.
to_i
,
last_fetched_at:
Time
.
now
.
to_i
,
issue_data:
serialize_issuable
(
@issue
),
issue_data:
serialize_issuable
(
@issue
),
...
...
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