2014-07-22 23:20:45 -04:00
|
|
|
export default Ember.ArrayController.extend(Discourse.Presence, {
|
|
|
|
loading: false,
|
2014-07-25 13:02:46 -04:00
|
|
|
itemController: 'admin-log-screened-ip-address',
|
2014-07-22 23:20:45 -04:00
|
|
|
|
|
|
|
show: function() {
|
|
|
|
var self = this;
|
|
|
|
this.set('loading', true);
|
|
|
|
Discourse.ScreenedIpAddress.findAll().then(function(result) {
|
2014-10-31 17:35:27 -04:00
|
|
|
self.set('model', result);
|
2014-07-22 23:20:45 -04:00
|
|
|
self.set('loading', false);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
|
|
|
|
actions: {
|
|
|
|
recordAdded: function(arg) {
|
2014-10-31 17:35:27 -04:00
|
|
|
this.get("model").unshiftObject(arg);
|
2014-07-22 23:20:45 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|