discourse/app/assets/javascripts/discourse/controllers/user_private_messages_controller.js.coffee
2013-02-07 16:45:24 +01:00

11 lines
422 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'