2013-08-14 16:40:12 -04:00
|
|
|
/**
|
|
|
|
This controller supports the interface for listing screened email addresses in the admin section.
|
|
|
|
|
|
|
|
@class AdminLogsScreenedEmailsController
|
|
|
|
@extends Ember.ArrayController
|
|
|
|
@namespace Discourse
|
|
|
|
@module Discourse
|
|
|
|
**/
|
2014-07-22 23:20:45 -04:00
|
|
|
export default Ember.ArrayController.extend(Discourse.Presence, {
|
2013-08-14 16:40:12 -04:00
|
|
|
loading: false,
|
|
|
|
content: [],
|
|
|
|
|
2014-06-02 02:52:43 -04:00
|
|
|
clearBlock: function(row){
|
|
|
|
row.clearBlock().then(function(){
|
|
|
|
// feeling lazy
|
|
|
|
window.location.reload();
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
2013-08-14 16:40:12 -04:00
|
|
|
show: function() {
|
|
|
|
var self = this;
|
|
|
|
this.set('loading', true);
|
|
|
|
Discourse.ScreenedEmail.findAll().then(function(result) {
|
|
|
|
self.set('content', result);
|
|
|
|
self.set('loading', false);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|