diff --git a/assets/js/components/notifications/interface.js b/assets/js/components/notifications/interface.js index ab774b46..36fad4b9 100644 --- a/assets/js/components/notifications/interface.js +++ b/assets/js/components/notifications/interface.js @@ -22,6 +22,22 @@ ComunicWeb.components.notifications.interface = { }, + /** + * Get the number of unread news such as notifications or conversations + * + * @param {function} callback + */ + getAllUnread: function(callback){ + + //Perform API request + var apiURI = "notifications/count_all_news"; + var params = {}; + + //Perform the request + ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback); + + } + /** * Get the list of unread notifications *