FEATURE: show sub navigation for selected PM tag

This commit is contained in:
Arpit Jalan 2018-03-28 13:06:57 +05:30
parent ee69d58a59
commit 70c4630320
2 changed files with 12 additions and 4 deletions

View File

@ -2,6 +2,7 @@ import createPMRoute from "discourse/routes/build-private-messages-route";
export default createPMRoute('tags', 'private-messages-tags').extend({ export default createPMRoute('tags', 'private-messages-tags').extend({
model(params) { model(params) {
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");
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}`

View File

@ -44,6 +44,13 @@
{{i18n 'user.messages.tags'}} {{i18n 'user.messages.tags'}}
{{/link-to}} {{/link-to}}
</li> </li>
{{#if tagId}}
<li class="archive">
{{#link-to 'userPrivateMessages.tagsShow' tagId}}
{{tagId}}
{{/link-to}}
</li>
{{/if}}
{{/if}} {{/if}}
{{/mobile-nav}} {{/mobile-nav}}
{{/d-section}} {{/d-section}}