rate the app
This commit is contained in:
parent
a2e20ee75d
commit
9e3f627c58
5 changed files with 31 additions and 7 deletions
|
|
@ -1,12 +1,13 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('thanksController', function($scope, $state, $stateParams, platformInfo) {
|
||||
angular.module('copayApp.controllers').controller('thanksController', function($scope, $state, $stateParams, platformInfo, configService) {
|
||||
$scope.score = parseInt($stateParams.score);
|
||||
$scope.skip = $stateParams.skip && $scope.score == 5;
|
||||
|
||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||
if (platformInfo.isCordova) {
|
||||
window.plugins.socialsharing.share('https://bitpay.com/wallet', 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