mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Add title token for What's New admin page (#28476)
Followup e60b808f49
,
I missed adding it here.
This commit is contained in:
parent
e60b808f49
commit
ebbe23e4d2
@ -1,9 +1,14 @@
|
|||||||
import { inject as service } from "@ember/service";
|
import { inject as service } from "@ember/service";
|
||||||
import DiscourseRoute from "discourse/routes/discourse";
|
import DiscourseRoute from "discourse/routes/discourse";
|
||||||
|
import I18n from "discourse-i18n";
|
||||||
|
|
||||||
export default class AdminWhatsNew extends DiscourseRoute {
|
export default class AdminWhatsNew extends DiscourseRoute {
|
||||||
@service currentUser;
|
@service currentUser;
|
||||||
|
|
||||||
|
titleToken() {
|
||||||
|
return I18n.t("admin.dashboard.new_features.title");
|
||||||
|
}
|
||||||
|
|
||||||
activate() {
|
activate() {
|
||||||
this.currentUser.set("has_unseen_features", false);
|
this.currentUser.set("has_unseen_features", false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user