Add empty state when search matches no requests

This commit is contained in:
Patrick Smith 2018-11-08 10:46:00 -05:00
parent 9b25c3b17f
commit dbdbbc4e9b

View File

@ -117,7 +117,7 @@
{% endif %} {% endif %}
<div class='responsive-table-wrapper'> <div class='responsive-table-wrapper'>
<table> <table v-if="isExtended && filteredRequests.length">
<thead> <thead>
<tr> <tr>
<th @click.prevent="updateSortValue(column.attr)" v-for="column in getColumns()"scope="col"> <th @click.prevent="updateSortValue(column.attr)" v-for="column in getColumns()"scope="col">
@ -157,6 +157,15 @@
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div v-else>
{{ EmptyState(
'No requests found.',
action_label=None,
action_href=None,
sub_message='Please try a different search.',
icon=None
) }}
</div>
</div> </div>
</div> </div>
{% endif %} {% endif %}