Add a custom route and button to see all assigned topics/messages
This commit is contained in:
parent
f0953332ab
commit
f225146c94
|
|
@ -0,0 +1,6 @@
|
||||||
|
export default {
|
||||||
|
resource: 'user.userActivity',
|
||||||
|
map() {
|
||||||
|
this.route('assigned');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
{{#if currentUser.staff}}
|
||||||
|
{{#link-to 'userActivity.assigned'}}
|
||||||
|
<i class="glyph fa fa-user-plus"></i>{{i18n 'discourse_assign.assigned'}}
|
||||||
|
{{/link-to}}
|
||||||
|
{{/if}}
|
||||||
|
|
@ -0,0 +1,6 @@
|
||||||
|
import UserActivityStreamRoute from "discourse/routes/user-activity-stream";
|
||||||
|
|
||||||
|
export default UserActivityStreamRoute.extend({
|
||||||
|
userActionType: 16,
|
||||||
|
noContentHelpKey: "discourse_assigns.no_assigns"
|
||||||
|
});
|
||||||
|
|
@ -3,6 +3,7 @@ en:
|
||||||
action_codes:
|
action_codes:
|
||||||
assigned: "assigned"
|
assigned: "assigned"
|
||||||
discourse_assign:
|
discourse_assign:
|
||||||
|
assigned: "Assigned"
|
||||||
assign_html: "<p class='assigned-to'><i class='fa-user-plus fa'></i> Assigned to {{userLink}}</p>"
|
assign_html: "<p class='assigned-to'><i class='fa-user-plus fa'></i> Assigned to {{userLink}}</p>"
|
||||||
assign_notification: "<i title='assigned' class='fa fa-user-plus'></i><p><span>{{username}}</span> {{description}}</p>"
|
assign_notification: "<i title='assigned' class='fa fa-user-plus'></i><p><span>{{username}}</span> {{description}}</p>"
|
||||||
assign:
|
assign:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue