discourse/app/assets/javascripts/discourse/controllers/user_private_messages_controller.js.coffee
2013-02-05 14:16:51 -05:00

11 lines
426 B
CoffeeScript

Discourse.UserPrivateMessagesController = Ember.ObjectController.extend
editPreferences: ->
Discourse.routeTo("/users/#{@get('content.username_lower')}/preferences")
composePrivateMessage: ->
composerController = Discourse.get('router.composerController')
composerController.open
action: Discourse.Composer.PRIVATE_MESSAGE
archetypeId: 'private_message'
draftKey: 'new_private_message'