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;
|
||||
}
|
|
@ -10,10 +10,10 @@ window.gstore.add('info', {
|
|||
message: 'Warning! blabla'
|
||||
});
|
||||
window.gstore.add('notif', [
|
||||
{ class: 'bell', count: 4 },
|
||||
{ class: 'message', count: 23 },
|
||||
{ class: 'search', count: '' },
|
||||
{ class: 'menu', count: '' }
|
||||
{ class: 'bell', data: ['guest1224934 connected', 'guest2349329042 connected'] },
|
||||
{ class: 'message', data: ['guestsdfljd: \"blabla bloblo\"'] },
|
||||
{ class: 'search', data: [] },
|
||||
{ class: 'menu', data: [] }
|
||||
])
|
||||
|
||||
// Menu
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|
||||
<!-- 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>
|
||||
|
|
Loading…
Reference in New Issue