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, userNotesCount: count,
emojiEnabled: component.siteSettings.enable_emoji, emojiEnabled: component.siteSettings.enable_emoji,
emojiUrl: emojiUrlFor("pencil"), emojiUrl: emojiUrlFor("pencil"),
user,
userNotesTitle: I18n.t("user_notes.show", { count }), userNotesTitle: I18n.t("user_notes.show", { count }),
}); });
}, },

View File

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