UX: "Show post" should be a link so admins can open the post in a new tab. (#27)

This commit is contained in:
Roman Rizzi 2021-04-06 17:05:36 -03:00 committed by GitHub
parent e0c9f67e90
commit a50c72e769
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View File

@ -18,7 +18,6 @@ export default {
userNotesCount: count,
emojiEnabled: component.siteSettings.enable_emoji,
emojiUrl: emojiUrlFor("pencil"),
user,
userNotesTitle: I18n.t("user_notes.show", { count }),
});
},

View File

@ -35,13 +35,9 @@
</div>
{{#if n.post_id}}
{{d-button
class="btn btn-small"
href=n.post_url
action=(route-action "closeModal")
title="user_notes.show_post"
translatedLabel=(i18n "user_notes.show_post")
}}
<a href={{n.post_url}} class="btn btn-small">
{{i18n "user_notes.show_post"}}
</a>
{{/if}}
</div>