fixes
This commit is contained in:
parent
2284e2507f
commit
d390292b91
5 changed files with 9 additions and 11 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('rateCardController', function($scope, $state, $timeout, gettextCatalog, storageService) {
|
angular.module('copayApp.controllers').controller('rateCardController', function($scope, $state, $timeout, gettextCatalog, platformInfo, storageService) {
|
||||||
|
|
||||||
|
$scope.isCordova = platformInfo.isCordova;
|
||||||
|
|
||||||
$scope.goFeedbackFlow = function() {
|
$scope.goFeedbackFlow = function() {
|
||||||
if ($scope.isModal) {
|
if ($scope.isModal) {
|
||||||
|
|
|
||||||
|
|
@ -19,11 +19,11 @@ angular.module('copayApp.controllers').controller('welcomeController', function(
|
||||||
$log.debug('Creating profile');
|
$log.debug('Creating profile');
|
||||||
profileService.createProfile(function(err) {
|
profileService.createProfile(function(err) {
|
||||||
if (err) $log.warn(err);
|
if (err) $log.warn(err);
|
||||||
$scope.setProfileCreationTime();
|
setProfileCreationTime();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.setProfileCreationTime = function() {
|
function setProfileCreationTime() {
|
||||||
var now = moment().unix() * 1000 + 24 * 60 * 60 * 1000;
|
var now = moment().unix() * 1000 + 24 * 60 * 60 * 1000;
|
||||||
storageService.setProfileCreationTime(now, function() {});
|
storageService.setProfileCreationTime(now, function() {});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,6 @@ angular.module('copayApp.services').factory('configService', function(storageSer
|
||||||
wp: ''
|
wp: ''
|
||||||
},
|
},
|
||||||
|
|
||||||
feedback: {
|
|
||||||
url: 'https://script.google.com/macros/s/AKfycbybtvNSQKUfgzgXcj3jYLlvCKrcBoktjiJ1V8_cwd2yVkpUBGe3/exec'
|
|
||||||
},
|
|
||||||
// wallet default config
|
// wallet default config
|
||||||
wallet: {
|
wallet: {
|
||||||
requiredCopayers: 2,
|
requiredCopayers: 2,
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
angular.module('copayApp.services').factory('feedbackService', function($http, $log, $httpParamSerializer, configService) {
|
angular.module('copayApp.services').factory('feedbackService', function($http, $log, $httpParamSerializer, configService) {
|
||||||
var root = {};
|
var root = {};
|
||||||
|
var URL = "https://script.google.com/macros/s/AKfycbybtvNSQKUfgzgXcj3jYLlvCKrcBoktjiJ1V8_cwd2yVkpUBGe3/exec";
|
||||||
|
|
||||||
root.send = function(dataSrc, cb) {
|
root.send = function(dataSrc, cb) {
|
||||||
$http(_post(dataSrc)).then(function() {
|
$http(_post(dataSrc)).then(function() {
|
||||||
$log.info("SUCCESS: Feedback sent");
|
$log.info("SUCCESS: Feedback sent");
|
||||||
|
|
@ -12,12 +14,9 @@ angular.module('copayApp.services').factory('feedbackService', function($http, $
|
||||||
};
|
};
|
||||||
|
|
||||||
var _post = function(dataSrc) {
|
var _post = function(dataSrc) {
|
||||||
|
|
||||||
var config = configService.getSync();
|
|
||||||
var url = config.feedback.url;
|
|
||||||
return {
|
return {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
url: url,
|
url: URL,
|
||||||
headers: {
|
headers: {
|
||||||
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'
|
'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
<img src="img/icon-link.svg" class="bg just-a-hint"/>
|
<img src="img/icon-link.svg" class="bg just-a-hint"/>
|
||||||
</i>
|
</i>
|
||||||
</a>
|
</a>
|
||||||
<a class="ng-hide item item-icon-left item-icon-right" ng-show="true" ng-click="openRateModal()">
|
<a class="item item-icon-left item-icon-right" ng-click="openRateModal()">
|
||||||
<i class="icon big-icon-svg">
|
<i class="icon big-icon-svg">
|
||||||
<img src="img/icon-send-feedback.svg" class="bg"/>
|
<img src="img/icon-send-feedback.svg" class="bg"/>
|
||||||
</i>
|
</i>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue