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:
xdrm-brackets 2017-12-04 10:26:10 +01:00
parent 43e1c742b7
commit a2746b6275
3 changed files with 7 additions and 6 deletions

View File

@ -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;
} }

View File

@ -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

View File

@ -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>