Merge pull request #5086 from gabrielbazan7/fix/feedback07

use defaults config values
This commit is contained in:
Jason Dreyzehner 2016-11-18 15:33:38 -06:00 committed by GitHub
commit 8199badb32
1 changed files with 14 additions and 14 deletions

View File

@ -2,7 +2,7 @@
angular.module('copayApp.controllers').controller('completeController', function($scope, $stateParams, $timeout, $log, $ionicHistory, $state, $ionicNavBarDelegate, $ionicConfig, platformInfo, configService, storageService, lodash) {
$scope.isCordova = platformInfo.isCordova;
var config = configService.getSync();
var defaults = configService.getDefaults();
function quickFeedback(cb) {
window.plugins.spinnerDialog.show();
@ -12,37 +12,37 @@ angular.module('copayApp.controllers').controller('completeController', function
$scope.shareFacebook = function() {
quickFeedback(function() {
window.plugins.socialsharing.shareVia($scope.shareFacebookVia, null, null, null, config.download.url);
window.plugins.socialsharing.shareVia($scope.shareFacebookVia, null, null, null, defaults.download.url);
});
};
$scope.shareTwitter = function() {
quickFeedback(function() {
window.plugins.socialsharing.shareVia($scope.shareTwitterVia, null, null, null, config.download.url);
window.plugins.socialsharing.shareVia($scope.shareTwitterVia, null, null, null, defaults.download.url);
});
};
$scope.shareGooglePlus = function() {
quickFeedback(function() {
window.plugins.socialsharing.shareVia($scope.shareGooglePlusVia, config.download.url);
window.plugins.socialsharing.shareVia($scope.shareGooglePlusVia, defaults.download.url);
});
};
$scope.shareEmail = function() {
quickFeedback(function() {
window.plugins.socialsharing.shareViaEmail(config.download.url);
window.plugins.socialsharing.shareViaEmail(defaults.download.url);
});
};
$scope.shareWhatsapp = function() {
quickFeedback(function() {
window.plugins.socialsharing.shareViaWhatsApp(config.download.url);
window.plugins.socialsharing.shareViaWhatsApp(defaults.download.url);
});
};
$scope.shareMessage = function() {
quickFeedback(function() {
window.plugins.socialsharing.shareViaSMS(config.download.url);
window.plugins.socialsharing.shareViaSMS(defaults.download.url);
});
};