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
d98c5e65
Commit
d98c5e65
authored
Jul 28, 2016
by
Vladimir Baranov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rref #5392. Reload unread messages conunt after user logged in
parent
9d7c1ce5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
messaging_service.js
app/components/messaging/messaging_service.js
+5
-0
directives.js
app/shared/directives.js
+0
-2
No files found.
app/components/messaging/messaging_service.js
View file @
d98c5e65
...
@@ -520,6 +520,11 @@ angular.module('ulakbus.messaging', ['ui.bootstrap'])
...
@@ -520,6 +520,11 @@ angular.module('ulakbus.messaging', ['ui.bootstrap'])
};
};
});
});
// initialize unread messages counter when user logged in
$rootScope
.
$on
(
"user_ready"
,
function
(){
msg
.
get_unread_messages_count
();
});
return
msg
;
return
msg
;
})
})
...
...
app/shared/directives.js
View file @
d98c5e65
...
@@ -43,8 +43,6 @@ angular.module('ulakbus')
...
@@ -43,8 +43,6 @@ angular.module('ulakbus')
scope
:
{},
scope
:
{},
controller
:
function
(
$scope
,
$log
)
{
controller
:
function
(
$scope
,
$log
)
{
$scope
.
count
=
MessagingService
.
get_unread_counters
();
$scope
.
count
=
MessagingService
.
get_unread_counters
();
// initialize counters
MessagingService
.
get_unread_messages_count
();
$scope
.
showMessagesWindow
=
function
(
type
){
$scope
.
showMessagesWindow
=
function
(
type
){
if
(
type
==
'notifications'
){
if
(
type
==
'notifications'
){
...
...
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