mirror of
https://github.com/discourse/discourse.git
synced 2025-02-24 16:37:57 +08:00
UX: convert "view all notification" to a link (#30874)
so it respects the user's input of opening it in another tab when CTRL/META/MIDDLE clicking it. <img width="471" alt="Screenshot 2025-01-20 at 16 20 14" src="https://github.com/user-attachments/assets/2ba1a78a-0c12-452e-b054-ef7e7c1338c1" />
This commit is contained in:
parent
d88ee33eb6
commit
e2c3dff669
@ -16,7 +16,7 @@
|
|||||||
{{#if this.showAllHref}}
|
{{#if this.showAllHref}}
|
||||||
<DButton
|
<DButton
|
||||||
class="show-all"
|
class="show-all"
|
||||||
@action={{this.showAll}}
|
@href={{this.showAllHref}}
|
||||||
@translatedAriaLabel={{this.showAllTitle}}
|
@translatedAriaLabel={{this.showAllTitle}}
|
||||||
@translatedTitle={{this.showAllTitle}}
|
@translatedTitle={{this.showAllTitle}}
|
||||||
>
|
>
|
||||||
|
@ -2,7 +2,6 @@ import Component from "@glimmer/component";
|
|||||||
import { tracked } from "@glimmer/tracking";
|
import { tracked } from "@glimmer/tracking";
|
||||||
import { action } from "@ember/object";
|
import { action } from "@ember/object";
|
||||||
import { service } from "@ember/service";
|
import { service } from "@ember/service";
|
||||||
import DiscourseURL from "discourse/lib/url";
|
|
||||||
|
|
||||||
export default class UserMenuItemsList extends Component {
|
export default class UserMenuItemsList extends Component {
|
||||||
@service session;
|
@service session;
|
||||||
@ -87,10 +86,4 @@ export default class UserMenuItemsList extends Component {
|
|||||||
`dismissButtonClick must be implemented in ${this.constructor.name}.`
|
`dismissButtonClick must be implemented in ${this.constructor.name}.`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@action
|
|
||||||
showAll() {
|
|
||||||
DiscourseURL.routeTo(this.showAllHref);
|
|
||||||
this.args.closeUserMenu();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user