mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 08:11:15 -05:00
17 lines
433 B
CoffeeScript
17 lines
433 B
CoffeeScript
window.Discourse.AdminEmailLogsController = Ember.ArrayController.extend Discourse.Presence,
|
|
|
|
sendTestEmailDisabled: (->
|
|
@blank('testEmailAddress')
|
|
).property('testEmailAddress')
|
|
|
|
sendTestEmail: ->
|
|
@set('sentTestEmail', false)
|
|
$.ajax
|
|
url: '/admin/email_logs/test',
|
|
type: 'POST'
|
|
data:
|
|
email_address: @get('testEmailAddress')
|
|
success: =>
|
|
@set('sentTestEmail', true)
|
|
false
|
|
|