{% extends 'abase.axml' %} {% from 'actions.axml' import pagination %} {% macro commander() %} { isFilterable: false, microserviceSearch: '', locationSearch: '', whenFilter: '', filterResults(){ let base = `/v1/microservices?pagination=${pagination}` if(this.microserviceSearch) base = `${base}µservice=${this.microserviceSearch}` if(this.locationSearch) base = `${base}&location=${this.locationSearch}` if(this.whenFilter) base = `${base}&timeline=${this.whenFilter}` fetch(`${base}`) .then(response => response.json()) .then(data => { isFiltering = true; microservices = data; }).catch(err => { ShowFeedback('error', 'Filter operation failed...') }) }, clearFilter(){ this.microserviceSearch = ''; this.locationSearch = ''; this.whenFilter = ''; refreshPage(); }, checkDirty(){ if(this.microserviceSearch !== '' || this.locationSearch !== '' || this.whenFilter !== '') { this.isFilterable = true; return true; } this.isFilterable = false; return false; } } {% endmacro %} {% block easel %}
Filters:
ID Microservice Location Pass Key Timestamped
ID Microservice Location Pass Key Timestamped
{{ pagination() }}
{% endblock %} {% block wizard %} {% endblock %}