From a2746b6275001b2ef222638d5e74134e137f6126 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 4 Dec 2017 10:26:10 +0100 Subject: [PATCH] upd: css.header + view.vue-config + header.vue (now notification count is processed from notification messages + if 0 css will not render) --- public_html/css/header.css | 3 ++- view/vue-config.js | 8 ++++---- view/vue/header.vue | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/public_html/css/header.css b/public_html/css/header.css index 2633f49..f9009a4 100644 --- a/public_html/css/header.css +++ b/public_html/css/header.css @@ -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; } \ No newline at end of file diff --git a/view/vue-config.js b/view/vue-config.js index 250d68b..4b86205 100644 --- a/view/vue-config.js +++ b/view/vue-config.js @@ -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 diff --git a/view/vue/header.vue b/view/vue/header.vue index 600803d..d920e25 100644 --- a/view/vue/header.vue +++ b/view/vue/header.vue @@ -12,7 +12,7 @@
-
+