feat(devUtils): add development utilities, feedback card activation to advanced settings

This commit is contained in:
Jason Dreyzehner 2016-11-17 15:15:41 -05:00
commit 3f2358a947
3 changed files with 73 additions and 6 deletions

View file

@ -1,6 +1,6 @@
'use strict';
angular.module('copayApp.controllers').controller('rateCardController', function($scope, $state, $timeout, gettextCatalog, platformInfo, storageService) {
angular.module('copayApp.controllers').controller('rateCardController', function($scope, $state, $timeout, $log, gettextCatalog, platformInfo, storageService) {
$scope.isCordova = platformInfo.isCordova;
$scope.score = 0;
@ -43,6 +43,7 @@ angular.module('copayApp.controllers').controller('rateCardController', function
};
$scope.hideCard = function() {
$log.debug('Feedback card dismissed.')
storageService.getFeedbackInfo(function(error, info) {
var feedbackInfo = JSON.parse(info);
feedbackInfo.sent = true;