From 39da6266117a2eda800f245bfc44685caa4eb145 Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Tue, 12 Jul 2016 22:02:05 -0300 Subject: [PATCH] Fixed badge bug when goes from X to 0 Related to commit 57220c567655d2c1a766d2152bbb5c2b11cbb6e0 --- app/ux/mixin/Badge.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ux/mixin/Badge.js b/app/ux/mixin/Badge.js index 985c2f07..03d62e85 100644 --- a/app/ux/mixin/Badge.js +++ b/app/ux/mixin/Badge.js @@ -32,9 +32,9 @@ Ext.define('Rambox.ux.mixin.Badge', { var me = this, el = me.el; - if (me.rendered && badgeText !== '0') { + if (me.rendered) { el.set({ - 'data-badge-text': badgeText + 'data-badge-text': badgeText !== '0' ? badgeText : '' }); el.toggleCls(Ext.baseCSSPrefix + 'badge', !! badgeText);