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({
model(params) {
this.controllerFor('user-private-messages').set('tagId', params.id);
const username = this.modelFor("user").get("username_lower");
return this.store.findFiltered("topicList", {
filter: `topics/private-messages-tags/${username}/${params.id}`

View File

@ -40,10 +40,17 @@
{{#if pmTaggingEnabled}}
<li class="noGlyph">
{{#link-to 'userPrivateMessages.tags' model}}
{{i18n 'user.messages.tags'}}
{{/link-to}}
</li>
{{#link-to 'userPrivateMessages.tags' model}}
{{i18n 'user.messages.tags'}}
{{/link-to}}
</li>
{{#if tagId}}
<li class="archive">
{{#link-to 'userPrivateMessages.tagsShow' tagId}}
{{tagId}}
{{/link-to}}
</li>
{{/if}}
{{/if}}
{{/mobile-nav}}
{{/d-section}}