Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
4b328302
authored
Jan 14, 2018
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
counter update in rooms fixed
parent
e3be7077
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
3 deletions
sails/src/api/controllers/StudentController.js
sails/src/assets/scripts/modules/student/controllers/student.js
sails/src/api/controllers/StudentController.js
View file @
4b328302
...
...
@@ -1447,7 +1447,6 @@ module.exports = {
sails
.
hooks
.
rooms
.
getUICount
(
room
,
(
info
)
=>
{
res
.
ok
(
info
);
});
},
//
...
...
sails/src/assets/scripts/modules/student/controllers/student.js
View file @
4b328302
...
...
@@ -74,10 +74,9 @@ dashboardControllers.controller('StudentCtrl', function StudentCtrl(
token
:
$window
.
sessionStorage
.
token
},
function
(
data
)
{
console
.
log
(
JSON
.
stringify
(
data
));
if
(
data
.
room
.
search
(
'student'
)
!=
-
1
)
{
$scope
.
studentData
.
pcb_count
=
data
.
pcb_count
;
$scope
.
studentData
.
pdb_count
=
data
.
pdb_count
;
$scope
.
studentData
.
pdb_count
=
data
.
pdb_count
==
0
?
1
:
data
.
pdb_count
;
// because subscription is fastar than counter update
$scope
.
$apply
();
ngToast
.
success
(
$translate
.
instant
(
'subscribed'
));
}
...
...
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