Merge pull request #5049 from cmgustavo/bug/send-feedback-success
After send feedback from settings-tab, go back and clear history
This commit is contained in:
commit
7a736df1b4
1 changed files with 11 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('sendController', function($scope, $state, $log, $timeout, $stateParams, $ionicNavBarDelegate, gettextCatalog, popupService, configService, lodash, feedbackService, ongoingProcess) {
|
angular.module('copayApp.controllers').controller('sendController', function($scope, $state, $log, $timeout, $stateParams, $ionicNavBarDelegate, $ionicHistory, gettextCatalog, popupService, configService, lodash, feedbackService, ongoingProcess) {
|
||||||
|
|
||||||
$scope.sendFeedback = function(feedback, skip) {
|
$scope.sendFeedback = function(feedback, skip) {
|
||||||
|
|
||||||
|
|
@ -20,10 +20,16 @@ angular.module('copayApp.controllers').controller('sendController', function($sc
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!$stateParams.score) {
|
if (!$stateParams.score) {
|
||||||
popupService.showAlert(gettextCatalog.getString('Thank you!'), gettextCatalog.getString('A member of the team will review your feedback as soon as possible.'));
|
popupService.showAlert(gettextCatalog.getString('Thank you!'), gettextCatalog.getString('A member of the team will review your feedback as soon as possible.'), function() {
|
||||||
$scope.feedback.value = '';
|
$scope.feedback.value = '';
|
||||||
$timeout(function() {
|
$ionicHistory.nextViewOptions({
|
||||||
$scope.$apply();
|
disableAnimate: true,
|
||||||
|
historyRoot: true
|
||||||
|
});
|
||||||
|
$ionicHistory.clearHistory();
|
||||||
|
$timeout(function() {
|
||||||
|
$state.go('tabs.settings');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue