Skip to content

A platform for community discussion. Free, open, simple.

UX: convert "view all notification" to a link (#30874)

Régis Hanole2c3dff6692d
diff --git a/app/assets/javascripts/discourse/app/components/user-menu/items-list.hbs b/app/assets/javascripts/discourse/app/components/user-menu/items-list.hbs
index 43e039876d4..87d840fd45b 100644
--- a/app/assets/javascripts/discourse/app/components/user-menu/items-list.hbs
+++ b/app/assets/javascripts/discourse/app/components/user-menu/items-list.hbs
@@ -16,7 +16,7 @@
{{#if this.showAllHref}}
<DButton
class="show-all"
- @action={{this.showAll}}
+ @href={{this.showAllHref}}
@translatedAriaLabel={{this.showAllTitle}}
@translatedTitle={{this.showAllTitle}}
>
diff --git a/app/assets/javascripts/discourse/app/components/user-menu/items-list.js b/app/assets/javascripts/discourse/app/components/user-menu/items-list.js
index c5fec5e5d23..8ccef079c71 100644
--- a/app/assets/javascripts/discourse/app/components/user-menu/items-list.js
+++ b/app/assets/javascripts/discourse/app/components/user-menu/items-list.js
@@ -2,7 +2,6 @@ import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
import { service } from "@ember/service";
-import DiscourseURL from "discourse/lib/url";
export default class UserMenuItemsList extends Component {
@service session;
@@ -87,10 +86,4 @@ export default class UserMenuItemsList extends Component {
`dismissButtonClick must be implemented in ${this.constructor.name}.`
);
}
-
- @action
- showAll() {
- DiscourseURL.routeTo(this.showAllHref);
- this.args.closeUserMenu();
- }
}