i have made notification increase instead of + sign in top tool bar and dropdown notification, but in desktop icon i can’t fine its code to change till 100 instead of 20+. can any one help me to fine that code
your help will highly appreciated
i have made notification increase instead of + sign in top tool bar and dropdown notification, but in desktop icon i can’t fine its code to change till 100 instead of 20+. can any one help me to fine that code
your help will highly appreciated
What version are you on ?
Am on the latest version and it seems to be going till 99 and beyond 99 as ‘99+’ just fine.
@Zlash65 which code you have change. i edit (90 as 90+), but its not working
$(".navbar-new-comments")
.html(frappe.ui.notifications.total > 99 ? '99+' : frappe.ui.notifications.total)
.toggleClass("navbar-new-comments-true", frappe.ui.notifications.total ? true : false);
}
var count = notifications_map[doctype];
if(count) {
var config = frappe.ui.notifications.config[doctype] || {};
var label = config.label || doctype;
var notification_row = repl('<li><a class="badge-hover" data-doctype="%(data_doctype)s">\
<span class="badge pull-right">\
%(count)s</span> \
%(label)s </a></li>', {
label: __(label),
count: count > 99 ? '99+' : count,
data_doctype: doctype
});
I didn’t change anything. It works like this by default.
Are you not using the latest version ?
Try updating to the latest.