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
9a865445
Commit
9a865445
authored
Aug 18, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IssueNotesRefactor: Move edit button out the dropdown.
Fix note action buttons spacing.
parent
7c491d4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
39 deletions
+50
-39
app/assets/javascripts/notes/components/issue_note_actions.vue
...ssets/javascripts/notes/components/issue_note_actions.vue
+50
-39
No files found.
app/assets/javascripts/notes/components/issue_note_actions.vue
View file @
9a865445
...
@@ -5,6 +5,8 @@
...
@@ -5,6 +5,8 @@
import
emojiSmiley
from
'
icons/_emoji_smiley.svg
'
;
import
emojiSmiley
from
'
icons/_emoji_smiley.svg
'
;
import
loadingIcon
from
'
../../vue_shared/components/loading_icon.vue
'
;
import
loadingIcon
from
'
../../vue_shared/components/loading_icon.vue
'
;
import
tooltip
from
'
../../vue_shared/directives/tooltip
'
;
import
tooltip
from
'
../../vue_shared/directives/tooltip
'
;
import
editSvg
from
'
icons/_icon_pencil.svg
'
;
import
ellipsisSvg
from
'
icons/_ellipsis_v.svg
'
;
export
default
{
export
default
{
name
:
'
issueNoteActions
'
,
name
:
'
issueNoteActions
'
,
...
@@ -74,6 +76,8 @@
...
@@ -74,6 +76,8 @@
this
.
emojiSmiling
=
emojiSmiling
;
this
.
emojiSmiling
=
emojiSmiling
;
this
.
emojiSmile
=
emojiSmile
;
this
.
emojiSmile
=
emojiSmile
;
this
.
emojiSmiley
=
emojiSmiley
;
this
.
emojiSmiley
=
emojiSmiley
;
this
.
editSvg
=
editSvg
;
this
.
ellipsisSvg
=
ellipsisSvg
;
},
},
};
};
</
script
>
</
script
>
...
@@ -83,55 +87,62 @@
...
@@ -83,55 +87,62 @@
<span
<span
v-if=
"accessLevel"
v-if=
"accessLevel"
class=
"note-role"
>
{{
accessLevel
}}
</span>
class=
"note-role"
>
{{
accessLevel
}}
</span>
<a
<div
class=
"note-actions-item"
>
v-tooltip
<a
v-if=
"canAddAwardEmoji"
v-tooltip
:class=
"
{ 'js-user-authored': isAuthoredByCurrentUser }"
v-if=
"canAddAwardEmoji"
class="note-action-button note-emoji-button js-add-award js-note-emoji"
:class=
"
{ 'js-user-authored': isAuthoredByCurrentUser }"
data-position="right"
class="note-action-button note-emoji-button js-add-award js-note-emoji"
href="#"
data-position="right"
title="Add reaction">
data-placement="bottom"
<loading-icon
:inline=
"true"
/>
data-container="body"
<span
href="#"
v-html=
"emojiSmiling"
title="Add reaction">
class=
"link-highlight award-control-icon-neutral"
>
<loading-icon
:inline=
"true"
/>
</span>
<span
<span
v-html=
"emojiSmiling"
v-html=
"emojiSmiley"
class=
"link-highlight award-control-icon-neutral"
>
class=
"link-highlight award-control-icon-positive"
>
</span>
</span>
<span
<span
v-html=
"emojiSmiley"
v-html=
"emojiSmile"
class=
"link-highlight award-control-icon-positive"
>
class=
"link-highlight award-control-icon-super-positive"
>
</span>
</span>
<span
</a>
v-html=
"emojiSmile"
class=
"link-highlight award-control-icon-super-positive"
>
</span>
</a>
</div>
<div
class=
"note-actions-item"
>
<button
@
click=
"onEdit"
v-tooltip
type=
"button"
title=
"Edit comment"
class=
"note-action-button js-note-edit btn btn-transparent"
data-container=
"body"
data-placement=
"bottom"
>
<span
v-html=
"editSvg"
class=
"link-highlight"
></span>
</button>
</div>
<div
<div
v-if=
"shouldShowActionsDropdown"
v-if=
"shouldShowActionsDropdown"
class=
"dropdown more-actions"
>
class=
"dropdown more-actions
note-actions-item
"
>
<button
<button
v-tooltip
v-tooltip
type=
"button"
type=
"button"
title=
"More actions"
title=
"More actions"
class=
"note-action-button more-actions-toggle btn btn-transparent"
class=
"note-action-button more-actions-toggle btn btn-transparent"
data-toggle=
"dropdown"
data-toggle=
"dropdown"
data-container=
"body"
>
data-container=
"body"
<i
data-placement=
"bottom"
>
aria-hidden=
"true"
<span
class=
"
fa fa-ellipsis-v icon"
>
class=
"
icon"
</i
>
v-html=
"ellipsisSvg"
></span
>
</button>
</button>
<ul
class=
"dropdown-menu more-actions-dropdown dropdown-open-left"
>
<ul
class=
"dropdown-menu more-actions-dropdown dropdown-open-left"
>
<template
v-if=
"canEdit"
>
<li>
<button
@
click=
"onEdit"
type=
"button"
class=
"btn btn-transparent js-note-edit"
>
Edit comment
</button>
</li>
<li
class=
"divider"
></li>
</
template
>
<li
v-if=
"canReportAsAbuse"
>
<li
v-if=
"canReportAsAbuse"
>
<a
:href=
"reportAbusePath"
>
<a
:href=
"reportAbusePath"
>
Report as abuse
Report as abuse
...
...
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