fixes in controllers
This commit is contained in:
parent
cc2853e827
commit
a1644a32d8
4 changed files with 7 additions and 6 deletions
|
|
@ -1,8 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('copayersController',
|
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 self = this;
|
||||||
|
var isCordova = platformInfo.isCordova;
|
||||||
|
|
||||||
var delete_msg = gettextCatalog.getString('Are you sure you want to delete this wallet?');
|
var delete_msg = gettextCatalog.getString('Are you sure you want to delete this wallet?');
|
||||||
var accept_msg = gettextCatalog.getString('Accept');
|
var accept_msg = gettextCatalog.getString('Accept');
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('importController',
|
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 isChromeApp = platformInfo.isChromeApp;
|
||||||
var isDevel = platformInfo.isDevel;
|
var isDevel = platformInfo.isDevel;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
var isCordova = platformInfo.isCordova;
|
var isCordova = platformInfo.isCordova;
|
||||||
var isWP = platformInfo.isWP;
|
var isWP = platformInfo.isWP;
|
||||||
var isAndroid = platformInfo.isAndroid;
|
var isAndroid = platformInfo.isAndroid;
|
||||||
var isChromeApp = platformInfo.isChromeApp; >>> >>> > migration to platformInfo WIP
|
var isChromeApp = platformInfo.isChromeApp;
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
window.ignoreMobilePause = false;
|
window.ignoreMobilePause = false;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.services').
|
angular.module('copayApp.services').
|
||||||
factory('notification', ['$timeout','isCordova',
|
factory('notification', function($timeout, platformInfo) {
|
||||||
function($timeout, isCordova) {
|
|
||||||
|
|
||||||
|
var isCordova = platformInfo.isCordova;
|
||||||
var notifications = [];
|
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
|
* It should also parse the arguments passed to it that specify
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue