Merge pull request #5057 from gabrielbazan7/feat/feedback02
adding app version, device version and platform to spreadsheet post
This commit is contained in:
commit
d4f153874f
1 changed files with 6 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('sendController', function($scope, $state, $log, $timeout, $stateParams, $ionicNavBarDelegate, $ionicHistory, $ionicConfig, gettextCatalog, popupService, configService, lodash, feedbackService, ongoingProcess) {
|
angular.module('copayApp.controllers').controller('sendController', function($scope, $state, $log, $timeout, $stateParams, $ionicNavBarDelegate, $ionicHistory, $ionicConfig, $window, gettextCatalog, popupService, configService, lodash, feedbackService, ongoingProcess) {
|
||||||
|
|
||||||
$scope.sendFeedback = function(feedback, skip) {
|
$scope.sendFeedback = function(feedback, skip) {
|
||||||
|
|
||||||
|
|
@ -9,7 +9,10 @@ angular.module('copayApp.controllers').controller('sendController', function($sc
|
||||||
var dataSrc = {
|
var dataSrc = {
|
||||||
"Email": lodash.values(config.emailFor)[0] || ' ',
|
"Email": lodash.values(config.emailFor)[0] || ' ',
|
||||||
"Feedback": skip ? ' ' : feedback,
|
"Feedback": skip ? ' ' : feedback,
|
||||||
"Score": $stateParams.score || ' '
|
"Score": $stateParams.score || ' ',
|
||||||
|
"AppVersion": $window.version,
|
||||||
|
"Platform": ionic.Platform.platform(),
|
||||||
|
"DeviceVersion": ionic.Platform.version()
|
||||||
};
|
};
|
||||||
|
|
||||||
ongoingProcess.set('sendingFeedback', true);
|
ongoingProcess.set('sendingFeedback', true);
|
||||||
|
|
@ -47,8 +50,7 @@ angular.module('copayApp.controllers').controller('sendController', function($sc
|
||||||
if ($scope.score) {
|
if ($scope.score) {
|
||||||
$ionicNavBarDelegate.showBackButton(false);
|
$ionicNavBarDelegate.showBackButton(false);
|
||||||
$ionicConfig.views.swipeBackEnabled(false);
|
$ionicConfig.views.swipeBackEnabled(false);
|
||||||
}
|
} else $ionicNavBarDelegate.showBackButton(true);
|
||||||
else $ionicNavBarDelegate.showBackButton(true);
|
|
||||||
|
|
||||||
switch ($scope.score) {
|
switch ($scope.score) {
|
||||||
case 1:
|
case 1:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue