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 { ...@@ -42,6 +42,11 @@ export default {
emojiSmiley, emojiSmiley,
}; };
}, },
computed: {
shouldShowActionsDropdown() {
return window.gon.current_user_id && (this.canEdit || this.canReportAsAbuse);
},
},
}; };
</script> </script>
...@@ -71,7 +76,9 @@ export default { ...@@ -71,7 +76,9 @@ export default {
v-html="emojiSmile" v-html="emojiSmile"
class="link-highlight award-control-icon-super-positive"></span> class="link-highlight award-control-icon-super-positive"></span>
</a> </a>
<div class="dropdown more-actions"> <div
v-if="shouldShowActionsDropdown"
class="dropdown more-actions">
<button <button
type="button" type="button"
title="More actions" 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