UX: Missing translation for title attribute for PM tag route.
This commit is contained in:
parent
7ecd0da109
commit
fa952c036c
|
@ -1,9 +1,20 @@
|
||||||
import createPMRoute from "discourse/routes/build-private-messages-route";
|
import createPMRoute from "discourse/routes/build-private-messages-route";
|
||||||
|
import I18n from "I18n";
|
||||||
|
|
||||||
export default createPMRoute("tags", "private-messages-tags").extend({
|
export default createPMRoute("tags", "private-messages-tags").extend({
|
||||||
|
titleToken() {
|
||||||
|
return [
|
||||||
|
this.get("tagId"),
|
||||||
|
I18n.t("tagging.tags"),
|
||||||
|
I18n.t("user.private_messages"),
|
||||||
|
];
|
||||||
|
},
|
||||||
|
|
||||||
model(params) {
|
model(params) {
|
||||||
this.controllerFor("user-private-messages").set("tagId", params.id);
|
this.controllerFor("user-private-messages").set("tagId", params.id);
|
||||||
const username = this.modelFor("user").get("username_lower");
|
const username = this.modelFor("user").get("username_lower");
|
||||||
|
this.set("tagId", params.id);
|
||||||
|
|
||||||
return this.store.findFiltered("topicList", {
|
return this.store.findFiltered("topicList", {
|
||||||
filter: `topics/private-messages-tags/${username}/${params.id}`,
|
filter: `topics/private-messages-tags/${username}/${params.id}`,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue