diff --git a/app/src/renderer/components/common/NiDataEmptySearch.vue b/app/src/renderer/components/common/NiDataEmptySearch.vue new file mode 100644 index 0000000000..6abba77c42 --- /dev/null +++ b/app/src/renderer/components/common/NiDataEmptySearch.vue @@ -0,0 +1,15 @@ + + + diff --git a/app/src/renderer/components/govern/PageProposals.vue b/app/src/renderer/components/govern/PageProposals.vue index 209304090d..5bcaf22f0e 100644 --- a/app/src/renderer/components/govern/PageProposals.vue +++ b/app/src/renderer/components/govern/PageProposals.vue @@ -8,14 +8,22 @@ page(title='Proposals') i.material-icons search .label Search modal-search(v-if="filters.proposals.search.visible" type="proposals") - part - li-proposal(v-for="p in filteredProposals" :key="p.id" :proposal="p") + + data-empty(v-if="proposals.length === 0") + data-empty-search(v-else-if="filteredProposals.length === 0") + li-proposal( + v-else + v-for="p in filteredProposals" + :key="p.id" + :proposal="p")