Add empty content view for search

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/16/head
Julius Härtl 2018-11-28 14:16:27 +01:00
rodzic d3db67a6b9
commit b7289389f4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4C614C6ED2CDE6DF
1 zmienionych plików z 9 dodań i 5 usunięć

Wyświetl plik

@ -21,11 +21,15 @@
-->
<template>
<div>
<h3>{{ t('social', 'Search') }} {{ term }}</h3>
<div v-if="results.length < 1" :class="{'icon-loading': loading}" class="emptycontent emptycontent-search" />
<div>
<UserEntry v-if="match" :item="match" />
<div class="social__wrapper">
<div v-if="results.length < 1" :class="{'icon-loading': loading}" id="emptycontent" class="">
<div class="icon-search"></div>
<h2>{{ t('social', 'No accounts found') }}</h2>
<p>No accounts found for {{ term }}</p>
</div>
<div v-if="match || results.length > 0">
<h3>{{ t('social', 'Search') }} {{ term }}</h3>
<UserEntry :item="match" />
<UserEntry v-for="result in results" :key="result.id" :item="result" />
</div>
</div>