mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Fixing EMM-1551: Notifications are flooded on side pane.
This commit is contained in:
parent
9b2f73acfb
commit
9f258df1d2
@ -117,7 +117,7 @@ function loadNewNotifications() {
|
|||||||
var currentUser = notifications.data("currentUser");
|
var currentUser = notifications.data("currentUser");
|
||||||
|
|
||||||
$.template("notification-listing", notifications.attr("src"), function (template) {
|
$.template("notification-listing", notifications.attr("src"), function (template) {
|
||||||
var serviceURL = emmAdminBasePath + "/notifications?status=NEW";
|
var serviceURL = emmAdminBasePath + "/notifications?offset=0&limit=5&status=NEW";
|
||||||
invokerUtil.get(
|
invokerUtil.get(
|
||||||
serviceURL,
|
serviceURL,
|
||||||
// on success
|
// on success
|
||||||
@ -128,6 +128,7 @@ function loadNewNotifications() {
|
|||||||
if (responsePayload["notifications"]) {
|
if (responsePayload["notifications"]) {
|
||||||
if (responsePayload.count > 0) {
|
if (responsePayload.count > 0) {
|
||||||
viewModel["notifications"] = responsePayload["notifications"];
|
viewModel["notifications"] = responsePayload["notifications"];
|
||||||
|
viewModel["appContext"] = context;
|
||||||
$(messageSideBar).html(template(viewModel));
|
$(messageSideBar).html(template(viewModel));
|
||||||
} else {
|
} else {
|
||||||
$(messageSideBar).html('<div class="alert alert-info" role="alert"><i class="icon fw fw-info"></i>No new notifications found...</div>');
|
$(messageSideBar).html('<div class="alert alert-info" role="alert"><i class="icon fw fw-info"></i>No new notifications found...</div>');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user