fixes in controllers

This commit is contained in:
Matias Alejo Garcia 2016-05-31 18:56:02 -03:00
parent cc2853e827
commit a1644a32d8
No known key found for this signature in database
GPG Key ID: 02470DB551277AB3
4 changed files with 7 additions and 6 deletions

View File

@ -1,8 +1,9 @@
'use strict';
angular.module('copayApp.controllers').controller('copayersController',
function($scope, $rootScope, $timeout, $log, $modal, profileService, go, notification, isCordova, gettext, gettextCatalog, animationService) {
function($scope, $rootScope, $timeout, $log, $modal, profileService, go, notification, platformInfo, gettext, gettextCatalog, animationService) {
var self = this;
var isCordova = platformInfo.isCordova;
var delete_msg = gettextCatalog.getString('Are you sure you want to delete this wallet?');
var accept_msg = gettextCatalog.getString('Accept');

View File

@ -1,7 +1,7 @@
'use strict';
angular.module('copayApp.controllers').controller('importController',
function($scope, $rootScope, $location, $timeout, $log, profileService, configService, notification, go, sjcl, gettext, lodash, ledger, trezor, derivationPathHelper) {
function($scope, $rootScope, $location, $timeout, $log, profileService, configService, notification, go, sjcl, gettext, lodash, ledger, trezor, derivationPathHelper, platformInfo) {
var isChromeApp = platformInfo.isChromeApp;
var isDevel = platformInfo.isDevel;

View File

@ -5,7 +5,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
var isCordova = platformInfo.isCordova;
var isWP = platformInfo.isWP;
var isAndroid = platformInfo.isAndroid;
var isChromeApp = platformInfo.isChromeApp; >>> >>> > migration to platformInfo WIP
var isChromeApp = platformInfo.isChromeApp;
var self = this;
window.ignoreMobilePause = false;

View File

@ -1,9 +1,9 @@
'use strict';
angular.module('copayApp.services').
factory('notification', ['$timeout','isCordova',
function($timeout, isCordova) {
factory('notification', function($timeout, platformInfo) {
var isCordova = platformInfo.isCordova;
var notifications = [];
/*
@ -257,7 +257,7 @@ factory('notification', ['$timeout','isCordova',
};
}
]).directive('notifications', function(notification, $compile) {
).directive('notifications', function(notification, $compile) {
/**
*
* It should also parse the arguments passed to it that specify