Refactoring notifications side-pane - EMM UI

This commit is contained in:
dilanua 2016-09-20 14:21:40 +05:30
parent 712f62aa43
commit afea5fcfc6
2 changed files with 7 additions and 2 deletions

View File

@ -99,7 +99,7 @@
<br>
<ul class="sidebar-messages"></ul>
<br>
<div class="text-center"><a href="{{appContext}}notification-listing" class="btn btn-primary">Show all notifications</a></div>
<div class="text-center"><a href="{{appContext}}notification-listing" class="btn btn-primary">Show All Notifications</a></div>
</div>
{{/zone}}
{{#zone "bottomJs"}}

View File

@ -131,7 +131,12 @@ function loadNewNotifications() {
// viewModel["appContext"] = context;
$(messageSideBar).html(template(viewModel));
} else {
$(messageSideBar).html("<h4 class='text-center'>No new notifications found</h4>");
$(messageSideBar).html(
"<h4 class='text-center'>No New Notifications</h4>" +
"<h5 class='text-center text-muted'>" +
"Check this section for error notifications<br>related to device operations" +
"</h5>"
);
}
} else {
$(messageSideBar).html("<h4 class ='message-danger text-center'>Unexpected error " +