Home notification for Aguda #7 closed
This commit is contained in:
parent
2dc7a7e297
commit
a71267f7f9
3 changed files with 21 additions and 1 deletions
|
@ -89,7 +89,7 @@ starter.factory('ApiService', ['$http', '$ionicPopup', '$ionicModal', function (
|
|||
console.log("[JCE] [INFO] : in update - Got Aguda from Facebook!");
|
||||
if(grades === null){
|
||||
window.localStorage['newAguda'] = "true";
|
||||
window.localStorage['newAguda'] = JSON.stringify(resp.data);
|
||||
window.localStorage['agudaPosts'] = JSON.stringify(resp.data);
|
||||
}else if(grades === JSON.stringify(resp.data)){
|
||||
console.log("[JCE] [INFO] : in update - no new newAguda");
|
||||
}else{
|
||||
|
|
|
@ -388,6 +388,15 @@ angular.module('starter.controllers', [])
|
|||
$location.path( "/app/jcenews" );
|
||||
};
|
||||
|
||||
$scope.goToAguda = function(){
|
||||
window.localStorage['newAguda'] = "false";
|
||||
$scope.newAguda = false;
|
||||
$ionicViewService.nextViewOptions({
|
||||
disableBack: true
|
||||
});
|
||||
$location.path( "/app/aguda" );
|
||||
};
|
||||
|
||||
$scope.goToGrades = function(){
|
||||
var localSettingsStr = window.localStorage['Settings'] || null;
|
||||
if (localSettingsStr !== null){
|
||||
|
@ -425,6 +434,12 @@ angular.module('starter.controllers', [])
|
|||
$scope.newNotes = false;
|
||||
}
|
||||
|
||||
if(window.localStorage['newAguda'] == "true"){
|
||||
$scope.newAguda = true;
|
||||
}else{
|
||||
$scope.newAguda = false;
|
||||
}
|
||||
|
||||
var userStr = window.localStorage['userInfo'] || null;
|
||||
if(userStr !== null)
|
||||
$scope.userData = JSON.parse(userStr);
|
||||
|
|
|
@ -39,6 +39,11 @@
|
|||
יש עדכון בגיליון ציונים
|
||||
</a>
|
||||
|
||||
<a ng-click="goToAguda()" class="item item-icon-right" ng-if="newAguda">
|
||||
<i class="icon ion-speakerphone"></i>
|
||||
פוסט חדש מהאגודה
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue