fix: add missing semicolons

This commit is contained in:
Prssanna Desai 2019-08-02 12:59:06 +05:30
parent e5ef709d2e
commit e75c7dcf26
2 changed files with 6 additions and 6 deletions

View file

@ -142,15 +142,15 @@ frappe.ui.EnergyPointsNotifications = class {
} else {
let message;
if (field.type === 'Appreciation') {
message = __('{0} appreciated your work on', [owner_name])
message = __('{0} appreciated your work on', [owner_name]);
} else if (field.type === 'Criticism') {
message = __('{0} criticized your work on', [owner_name])
message = __('{0} criticized your work on', [owner_name]);
} else if (field.type === 'Revert') {
message = __('{0} reverted your points on', [owner_name])
message = __('{0} reverted your points on', [owner_name]);
}
let reason_string = '- "' + frappe.ellipsis(field.reason, 50) + '"';
message_html = __(`{0}<span class="points-reason-name text-muted">{1}</span>
<span class="hidden-xs">{2}`, [message, field.reference_name, reason_string])
<span class="hidden-xs">{2}`, [message, field.reference_name, reason_string]);
}
return message_html;
}

View file

@ -164,13 +164,13 @@ frappe.ui.toolbar.Toolbar = Class.extend({
setup_energy_point_notifications: function() {
frappe.db.get_value('Energy Point Settings', null, 'enabled').then(r => {
let enabled = r.message.enabled;
if(enabled == 1) {
if(enabled === "1") {
$('.dropdown-energy-points').show();
this.energy_points_notifications = new frappe.ui.EnergyPointsNotifications();
} else {
$('.dropdown-energy-points').hide();
}
})
});
}
});