mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-11 03:49:07 +00:00
Only show No results when not loading
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
/>
|
/>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<span v-else class="no-results">No results found</span>
|
<span v-else-if="!loading" class="no-results">No results found</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -30,6 +30,11 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: false,
|
required: false,
|
||||||
default: false
|
default: false
|
||||||
|
},
|
||||||
|
loading: {
|
||||||
|
type: Boolean,
|
||||||
|
required: false,
|
||||||
|
default: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<results-list v-bind="{ results, shortList }" />
|
<results-list v-bind="{ results, shortList, loading }" />
|
||||||
<loader v-if="loading" />
|
<loader v-if="loading" />
|
||||||
|
|
||||||
<div ref="loadMoreButton" class="button-container">
|
<div ref="loadMoreButton" class="button-container">
|
||||||
|
|||||||
Reference in New Issue
Block a user