FEATURE: filter screened IP addresses

This commit is contained in:
Régis Hanol
2015-02-10 19:38:59 +01:00
parent 9b12e53d9c
commit c4e427cf73
8 changed files with 65 additions and 23 deletions

View File

@ -3,15 +3,16 @@ import { outputExportResult } from 'discourse/lib/export-result';
export default Ember.ArrayController.extend(Discourse.Presence, {
loading: false,
itemController: 'admin-log-screened-ip-address',
filter: null,
show: function() {
show: Discourse.debounce(function() {
var self = this;
self.set('loading', true);
Discourse.ScreenedIpAddress.findAll().then(function(result) {
Discourse.ScreenedIpAddress.findAll(this.get("filter")).then(function(result) {
self.set('model', result);
self.set('loading', false);
});
},
}, 250).observes("filter"),
actions: {
recordAdded: function(arg) {