mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 16:21:24 -05:00
11 lines
422 B
CoffeeScript
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'
|