new flow for NW.js

This commit is contained in:
Gabriel Bazán 2016-11-02 15:30:14 -03:00
commit 9668870a07
7 changed files with 152 additions and 33 deletions

View file

@ -36,12 +36,10 @@ angular.module('copayApp.controllers').controller('tabHomeController',
});
}
$scope.hideRateCard = $stateParams.fromAppRate || !$scope.isCordova;
if (!$scope.hideRateCard) {
storageService.getRateCardFlag(function(error, value) {
$scope.hideRateCard = (value == 'true') ? true : false;
});
}
storageService.getRateCardFlag(function(error, value) {
$scope.hideRateCard = (value == 'true') ? true : false;
});
});
$scope.$on("$ionicView.enter", function(event, data) {
@ -144,14 +142,15 @@ angular.module('copayApp.controllers').controller('tabHomeController',
};
$scope.goFeedbackFlow = function() {
if ($scope.score != 5)
$state.go('feedback.sendFeedback', {
score: $scope.score
});
else
if ($scope.isCordova && $scope.score == 5) {
$state.go('feedback.rateAppStore', {
score: $scope.score
});
} else {
$state.go('feedback.sendFeedback', {
score: $scope.score
});
}
};
$scope.openNotificationModal = function(n) {