mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 18:17:29 -05:00
20 lines
528 B
JavaScript
20 lines
528 B
JavaScript
/**
|
|
This controller handles actions related to a user's private messages.
|
|
|
|
@class UserPrivateMessagesController
|
|
@extends Discourse.ObjectController
|
|
@namespace Discourse
|
|
@module Discourse
|
|
**/
|
|
Discourse.UserPrivateMessagesController = Discourse.ObjectController.extend({
|
|
needs: ['composer'],
|
|
|
|
composePrivateMessage: function() {
|
|
this.get('controllers.composer').open({
|
|
action: Discourse.Composer.PRIVATE_MESSAGE,
|
|
archetypeId: 'private_message',
|
|
draftKey: 'new_private_message'
|
|
});
|
|
}
|
|
|
|
});
|