Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ulakbus
ulakbus-ui
Commits
298d99e0
Commit
298d99e0
authored
May 24, 2016
by
Bahadir Can Yildiz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CHANGE rref #5340. Modified notifications
parent
609e39e4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
directives.js
app/shared/directives.js
+2
-1
header-notification.html
app/shared/templates/directives/header-notification.html
+1
-1
No files found.
app/shared/directives.js
View file @
298d99e0
...
...
@@ -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
);
});
...
...
app/shared/templates/directives/header-notification.html
View file @
298d99e0
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment