adding notifications on connection issues, again

parent c2b3087c
......@@ -74,11 +74,12 @@ 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.$apply();
ngToast.warning($translate.instant('subscribed'));
ngToast.success($translate.instant('subscribed'));
}
});
});
......
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 sign in to comment