fix: Remove energy_points data from boot

This commit is contained in:
Suraj Shetty 2019-03-26 21:18:31 +05:30
parent 54322d9587
commit bde72dcba9
2 changed files with 0 additions and 14 deletions

View file

@ -81,9 +81,6 @@ def get_bootinfo():
bootinfo.success_action = get_success_action()
bootinfo.update(get_email_accounts(user=frappe.session.user))
bootinfo.energy_points_enabled = is_energy_point_enabled()
bootinfo.energy_points = get_energy_points(frappe.session.user)
bootinfo.review_points = get_energy_points(frappe.session.user, 'Review')
return bootinfo

View file

@ -47,7 +47,6 @@ frappe.Application = Class.extend({
this.setup_analytics();
this.setup_energy_point_listeners();
this.show_energy_points();
frappe.ui.keys.setup();
this.set_rtl();
@ -557,16 +556,6 @@ frappe.Application = Class.extend({
frappe.realtime.on('energy_point_alert', (message) => {
frappe.show_alert(message);
});
},
show_energy_points() {
if (frappe.boot.energy_points_enabled) {
$(".toolbar-user-fullname").append(`
<span class="ellipsis hidden-xs energy-points hidden-sm primary">
(${frappe.boot.energy_points} pts)
</span>
`);
}
}
});