{% extends 'abase.axml' %} {% from 'actions.axml' import pagination %} {% set modal_name = 'Events' %} {% macro commander() %} { isFilterable: false, oldPagination: pagination, idSearch: '', eventSearch: '', deduperSearch: '', payloadSearch: '', whenFilter: '', filterResults(){ let base = `/v1/events?pagination=${100}&page=${page}` if(this.idSearch) base = `${base}&id=${this.idSearch}` if(this.eventSearch) base = `${base}&event=${this.eventSearch}` if(this.deduperSearch) base = `${base}&deduper=${this.deduperSearch}` if(this.payloadSearch) base = `${base}&payload=${this.payloadSearch}` if(this.whenFilter) base = `${base}&timeline=${this.whenFilter}` fetch(`${base}`) .then(response => response.json()) .then(data => { isFiltering = true; events = data; }).catch(err => { ShowFeedback('error', 'Filter operation failed...') }) }, clearFilter(){ this.idSearch = ''; this.eventSearch = ''; this.deduperSearch = ''; this.payloadSearch = ''; this.whenFilter = ''; isFiltering = false; fetchAll(); }, checkDirty(){ if(this.idSearch !== '' || this.eventSearch !== '' || this.deduperSearch !== '' || this.payloadSearch !== '' || this.whenFilter !== '' ) { this.isFilterable = true; return true; } this.isFilterable = false; return false; } } {% endmacro %} {% block easel %}
Filters:
Event Action Deduper Payload Timestamped
Event Action Deduper Payload Timestamped
{{ pagination() }}
{% endblock %} {% block wizard %} {% endblock %}