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') ...@@ -43,7 +43,7 @@ angular.module('ulakbus')
restrict: 'E', restrict: 'E',
replace: true, replace: true,
scope: {}, scope: {},
controller: function ($scope) { controller: function ($scope, $log) {
// notification categories: // notification categories:
// 1: tasks, 2: messages, 3: announcements, 4: recents // 1: tasks, 2: messages, 3: announcements, 4: recents
$scope.notifications = {1: [], 2: [], 3: [], 4: []}; $scope.notifications = {1: [], 2: [], 3: [], 4: []};
...@@ -80,6 +80,7 @@ angular.module('ulakbus') ...@@ -80,6 +80,7 @@ angular.module('ulakbus')
* When "notifications" send via websocket, parse notifications by type. * When "notifications" send via websocket, parse notifications by type.
*/ */
$scope.$on("notifications", function (event, data) { $scope.$on("notifications", function (event, data) {
$log.debug("Notification!", data);
$scope.groupNotifications(data); $scope.groupNotifications(data);
}); });
......
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</a> </a>
<ul class="dropdown-tasks" uib-dropdown-menu ng-if="notifications[1].length > 0"> <ul class="dropdown-tasks" uib-dropdown-menu ng-if="notifications[1].length > 0">
<li ng-repeat="notify in notifications[1] | limitTo: '8'"> <li ng-repeat="notify in notifications[1] | limitTo: '8'">
<a> <a href="{{notify.url}}">
<div> <div>
<p> <p>
<strong>{{notify.title}}</strong> <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