upd: css.header + view.vue-config + header.vue (now notification count is processed from notification messages + if 0 css will not render)
This commit is contained in:
parent
43e1c742b7
commit
a2746b6275
|
@ -133,6 +133,7 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#header-notif .hnotif[data-count='']:before{
|
#header-notif .hnotif[data-count='']:before,
|
||||||
|
#header-notif .hnotif[data-count='0']:before{
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
|
@ -10,10 +10,10 @@ window.gstore.add('info', {
|
||||||
message: 'Warning! blabla'
|
message: 'Warning! blabla'
|
||||||
});
|
});
|
||||||
window.gstore.add('notif', [
|
window.gstore.add('notif', [
|
||||||
{ class: 'bell', count: 4 },
|
{ class: 'bell', data: ['guest1224934 connected', 'guest2349329042 connected'] },
|
||||||
{ class: 'message', count: 23 },
|
{ class: 'message', data: ['guestsdfljd: \"blabla bloblo\"'] },
|
||||||
{ class: 'search', count: '' },
|
{ class: 'search', data: [] },
|
||||||
{ class: 'menu', count: '' }
|
{ class: 'menu', data: [] }
|
||||||
])
|
])
|
||||||
|
|
||||||
// Menu
|
// Menu
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
<!-- Header Notif -->
|
<!-- Header Notif -->
|
||||||
<div id='header-notif'>
|
<div id='header-notif'>
|
||||||
<div v-for='notif in gstore.notif' :class='"hnotif " + notif.class' :data-count='notif.count'></div>
|
<div v-for='notif in gstore.notif' :class='"hnotif " + notif.class' :data-count='notif.data.length'></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue