mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 05:25:16 -05:00
FEATURE: filter personal messages by tags
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import TagDropComponent from "select-kit/components/tag-drop";
|
||||
import DiscourseURL from "discourse/lib/url";
|
||||
import { default as computed } from "ember-addons/ember-computed-decorators";
|
||||
|
||||
export default TagDropComponent.extend({
|
||||
@computed
|
||||
allTagsUrl() {
|
||||
return `/u/${this.currentUser.username}/messages/`;
|
||||
},
|
||||
|
||||
content: Ember.computed.alias("pmTags"),
|
||||
|
||||
actions: {
|
||||
onSelect(tagId) {
|
||||
const url = `/u/${this.currentUser.username}/messages/tag/${tagId}`;
|
||||
DiscourseURL.routeTo(url);
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user