add rate card flag
This commit is contained in:
parent
9e3f627c58
commit
7b2d3b1df0
8 changed files with 111 additions and 82 deletions
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
angular.module('copayApp.controllers').controller('rateAppStoreController', function($scope, $state, $stateParams, externalLinkService, configService, gettextCatalog, platformInfo) {
|
||||
$scope.score = parseInt($stateParams.score);
|
||||
$scope.isCordova = platformInfo.isCordova;
|
||||
var isAndroid = platformInfo.isAndroid;
|
||||
var isIOS = platformInfo.isIOS;
|
||||
var isWP = platformInfo.isWP;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('sendFeedbackController', function($scope, $state, $timeout, $stateParams, gettextCatalog) {
|
||||
angular.module('copayApp.controllers').controller('sendFeedbackController', function($scope, $state, $stateParams, gettextCatalog) {
|
||||
$scope.score = parseInt($stateParams.score);
|
||||
switch ($scope.score) {
|
||||
case 1:
|
||||
|
|
|
|||
|
|
@ -1,13 +1,12 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('thanksController', function($scope, $state, $stateParams, platformInfo, configService) {
|
||||
angular.module('copayApp.controllers').controller('thanksController', function($scope, $stateParams, configService, storageService) {
|
||||
$scope.score = parseInt($stateParams.score);
|
||||
$scope.skip = $stateParams.skip && $scope.score == 5;
|
||||
storageService.setRateCardFlag('true', function() {});
|
||||
|
||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||
if (platformInfo.isCordova) {
|
||||
var config = configService.getSync();
|
||||
window.plugins.socialsharing.share(config.download.url, null, null, null);
|
||||
}
|
||||
var config = configService.getSync();
|
||||
window.plugins.socialsharing.share(config.download.url, null, null, null);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue