mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Restore cmd+click ability in topic-info (#27305)
This commit is contained in:
parent
29b826c8f7
commit
adeda6c6a5
@ -7,6 +7,7 @@ import { htmlSafe } from "@ember/template";
|
|||||||
import { and, gt, not, or } from "truth-helpers";
|
import { and, gt, not, or } from "truth-helpers";
|
||||||
import categoryLink from "discourse/helpers/category-link";
|
import categoryLink from "discourse/helpers/category-link";
|
||||||
import concatClass from "discourse/helpers/concat-class";
|
import concatClass from "discourse/helpers/concat-class";
|
||||||
|
import { wantsNewWindow } from "discourse/lib/intercept-click";
|
||||||
import renderTags from "discourse/lib/render-tags";
|
import renderTags from "discourse/lib/render-tags";
|
||||||
import DiscourseURL from "discourse/lib/url";
|
import DiscourseURL from "discourse/lib/url";
|
||||||
import icon from "discourse-common/helpers/d-icon";
|
import icon from "discourse-common/helpers/d-icon";
|
||||||
@ -68,6 +69,10 @@ export default class Info extends Component {
|
|||||||
|
|
||||||
@action
|
@action
|
||||||
jumpToTopPost(e) {
|
jumpToTopPost(e) {
|
||||||
|
if (wantsNewWindow(e)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (this.args.topic) {
|
if (this.args.topic) {
|
||||||
DiscourseURL.routeTo(this.args.topic.firstPostUrl, {
|
DiscourseURL.routeTo(this.args.topic.firstPostUrl, {
|
||||||
|
Loading…
Reference in New Issue
Block a user