mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
refactor
This commit is contained in:
parent
791da9b322
commit
753199febb
@ -141,13 +141,13 @@ function showMessage(message, options={}) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateNotificationIndicator(counter) {
|
function updateNotificationIndicator(count) {
|
||||||
if (counter == 0) {
|
if (count == 0) {
|
||||||
$("#notification-alert").addClass("d-none");
|
$("#notification-alert").addClass("d-none");
|
||||||
} else {
|
} else {
|
||||||
$("#notification-alert").removeClass("d-none");
|
$("#notification-alert").removeClass("d-none");
|
||||||
}
|
}
|
||||||
$("#notification-counter").html(counter);
|
$("#notification-counter").html(count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user