This commit is contained in:
Gabriel Bazán 2016-11-11 10:21:25 -03:00
commit d390292b91
5 changed files with 9 additions and 11 deletions

View file

@ -1,6 +1,8 @@
'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() {
if ($scope.isModal) {

View file

@ -19,11 +19,11 @@ angular.module('copayApp.controllers').controller('welcomeController', function(
$log.debug('Creating profile');
profileService.createProfile(function(err) {
if (err) $log.warn(err);
$scope.setProfileCreationTime();
setProfileCreationTime();
});
};
$scope.setProfileCreationTime = function() {
function setProfileCreationTime() {
var now = moment().unix() * 1000 + 24 * 60 * 60 * 1000;
storageService.setProfileCreationTime(now, function() {});
};