mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
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({
|
||||
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}`
|
||||
|
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user