Commit d6dab4db authored by Fatih Acet's avatar Fatih Acet

IssueNotesRefactor: Show note actions dropdown for logged in users only.

parent 1f093bcd
......@@ -42,6 +42,11 @@ export default {
emojiSmiley,
};
},
computed: {
shouldShowActionsDropdown() {
return window.gon.current_user_id && (this.canEdit || this.canReportAsAbuse);
},
},
};
</script>
......@@ -71,7 +76,9 @@ export default {
v-html="emojiSmile"
class="link-highlight award-control-icon-super-positive"></span>
</a>
<div class="dropdown more-actions">
<div
v-if="shouldShowActionsDropdown"
class="dropdown more-actions">
<button
type="button"
title="More actions"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment