|
|
@ -24,13 +24,10 @@ module.exports = class { |
|
|
|
this.state.filter = Object.assign({}, this.state.filter, {[type]: (this.state.filter[type] || []).concat(filter)}) |
|
|
|
} |
|
|
|
|
|
|
|
console.log("FILTER:", this.state.filter) |
|
|
|
|
|
|
|
this.refresh() |
|
|
|
} |
|
|
|
|
|
|
|
removeFilter(type, filter) { |
|
|
|
console.log(type, filter, this.state.filter) |
|
|
|
|
|
|
|
if (type === "search") { |
|
|
|
this.state.filter = Object.assign({}, this.state.filter, {search: null}) |
|
|
@ -48,8 +45,6 @@ module.exports = class { |
|
|
|
} |
|
|
|
|
|
|
|
refresh() { |
|
|
|
console.log("REFRESH", this.state.filter) |
|
|
|
|
|
|
|
logHeaderApi.list(this.state.filter).then(logs => { |
|
|
|
this.state.logs = logs |
|
|
|
}) |
|
|
|