Commit 116474c5 authored by Fatih Acet's avatar Fatih Acet

IssueNotesRefactor: Show award actions to logged in users.

parent 0f098eb6
......@@ -46,6 +46,9 @@ export default {
shouldShowActionsDropdown() {
return window.gon.current_user_id && (this.canEdit || this.canReportAsAbuse);
},
canAddAwardEmoji() {
return window.gon.current_user_id;
},
},
};
</script>
......@@ -58,6 +61,7 @@ export default {
{{accessLevel}}
</span>
<a
v-if="canAddAwardEmoji"
class="note-action-button note-emoji-button js-add-award js-note-emoji js-user-authored has-tooltip"
data-position="right"
href="#"
......
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