adding send feedback option in settings
This commit is contained in:
parent
db8f16c362
commit
80888f63a1
14 changed files with 132 additions and 102 deletions
|
|
@ -26,12 +26,12 @@ angular.module('copayApp.controllers').controller('sendFeedbackController', func
|
|||
break;
|
||||
}
|
||||
|
||||
$scope.sendFeedback = function(feedback) {
|
||||
$scope.sendFeedback = function(feedback, skip) {
|
||||
|
||||
var config = configService.getSync();
|
||||
var dataSrc = {
|
||||
"entry.490635314": lodash.values(config.emailFor)[0] || 'no email setted',
|
||||
"entry.1447064148": feedback,
|
||||
"entry.1447064148": skip ? '-' : feedback,
|
||||
"entry.2142850951": $stateParams.score
|
||||
};
|
||||
|
||||
|
|
@ -39,11 +39,14 @@ angular.module('copayApp.controllers').controller('sendFeedbackController', func
|
|||
$log.info("SUCCESS: Feedback sent");
|
||||
$state.go('feedback.thanks', {
|
||||
score: $stateParams.score,
|
||||
skipped: false
|
||||
skipped: skip
|
||||
});
|
||||
}, function(data) {
|
||||
$log.info("Could not send feedback");
|
||||
popupService.showAlert(gettextCatalog.getString("Error"), gettextCatalog.getString("Could not send feedback, try again please"));
|
||||
$log.info("ERROR: Feedback sent anyway.");
|
||||
$state.go('feedback.thanks', {
|
||||
score: $stateParams.score,
|
||||
skipped: skip
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
|
|
@ -58,11 +61,4 @@ angular.module('copayApp.controllers').controller('sendFeedbackController', func
|
|||
};
|
||||
};
|
||||
|
||||
$scope.skip = function() {
|
||||
$state.go('feedback.thanks', {
|
||||
score: $scope.score,
|
||||
skipped: true
|
||||
});
|
||||
};
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue