mirror of
https://github.com/GuerillaStudio/vanillalist.git
synced 2024-12-21 08:31:55 +00:00
Fix no-result message display
This commit is contained in:
parent
79777a100e
commit
0772d59c6f
2 changed files with 3 additions and 1 deletions
|
@ -44,7 +44,9 @@ class PluginSearch {
|
||||||
generateResults(plugins) {
|
generateResults(plugins) {
|
||||||
if (plugins.length === 0) {
|
if (plugins.length === 0) {
|
||||||
this.noresult.classList.remove('hidden')
|
this.noresult.classList.remove('hidden')
|
||||||
|
this.container.innerHTML = ''
|
||||||
} else {
|
} else {
|
||||||
|
this.noresult.classList.add('hidden')
|
||||||
this.container.innerHTML = plugins.map(plugin => {
|
this.container.innerHTML = plugins.map(plugin => {
|
||||||
return this.cardGenerator(plugin)
|
return this.cardGenerator(plugin)
|
||||||
}).join('');
|
}).join('');
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
@import '1-core/_03-helpers';
|
@import '1-core/_03-helpers';
|
||||||
// @import '1-core/_04-layout';
|
// @import '1-core/_04-layout';
|
||||||
// @import '1-core/_05-flexgrid';
|
// @import '1-core/_05-flexgrid';
|
||||||
// @import '1-core/_06-rwd';
|
@import "1-core/_06-rwd";
|
||||||
// @import '1-core/_debug';
|
// @import '1-core/_debug';
|
||||||
|
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue