UX: Missing translation for title attribute for PM tag route.

This commit is contained in:
Alan Guo Xiang Tan 2021-08-10 09:12:37 +08:00
parent 7ecd0da109
commit fa952c036c
1 changed files with 11 additions and 0 deletions

View File

@ -1,9 +1,20 @@
import createPMRoute from "discourse/routes/build-private-messages-route";
import I18n from "I18n";
export default createPMRoute("tags", "private-messages-tags").extend({
titleToken() {
return [
this.get("tagId"),
I18n.t("tagging.tags"),
I18n.t("user.private_messages"),
];
},
model(params) {
this.controllerFor("user-private-messages").set("tagId", params.id);
const username = this.modelFor("user").get("username_lower");
this.set("tagId", params.id);
return this.store.findFiltered("topicList", {
filter: `topics/private-messages-tags/${username}/${params.id}`,
});