mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 16:21:24 -05:00
15 lines
468 B
CoffeeScript
15 lines
468 B
CoffeeScript
Discourse.UserActivityController = Ember.ObjectController.extend
|
|
|
|
needs: ['composer']
|
|
|
|
kickOffPrivateMessage: ( ->
|
|
if @get('content.openPrivateMessage')
|
|
@composePrivateMessage()
|
|
).observes('content.openPrivateMessage')
|
|
|
|
composePrivateMessage: ->
|
|
@get('controllers.composer').open
|
|
action: Discourse.Composer.PRIVATE_MESSAGE
|
|
usernames: @get('content').username
|
|
archetypeId: 'private_message'
|
|
draftKey: 'new_private_message'
|