Commit 298d99e0 authored by Bahadir Can Yildiz's avatar Bahadir Can Yildiz

CHANGE rref #5340. Modified notifications

parent 609e39e4
......@@ -43,7 +43,7 @@ angular.module('ulakbus')
restrict: 'E',
replace: true,
scope: {},
controller: function ($scope) {
controller: function ($scope, $log) {
// notification categories:
// 1: tasks, 2: messages, 3: announcements, 4: recents
$scope.notifications = {1: [], 2: [], 3: [], 4: []};
......@@ -80,6 +80,7 @@ angular.module('ulakbus')
* When "notifications" send via websocket, parse notifications by type.
*/
$scope.$on("notifications", function (event, data) {
$log.debug("Notification!", data);
$scope.groupNotifications(data);
});
......
......@@ -70,7 +70,7 @@
</a>
<ul class="dropdown-tasks" uib-dropdown-menu ng-if="notifications[1].length > 0">
<li ng-repeat="notify in notifications[1] | limitTo: '8'">
<a>
<a href="{{notify.url}}">
<div>
<p>
<strong>{{notify.title}}</strong>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment