FEATURE: show sub navigation for selected PM tag
This commit is contained in:
parent
ee69d58a59
commit
70c4630320
|
@ -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}`
|
||||||
|
|
|
@ -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}}
|
||||||
|
|
Loading…
Reference in New Issue