mirror of https://github.com/BTCPrivate/copay.git
Disables animation on chromeapp
This commit is contained in:
parent
be61c3039c
commit
2e2dbb656d
|
@ -11,7 +11,7 @@
|
||||||
"angular-foundation": "*",
|
"angular-foundation": "*",
|
||||||
"angular-qrcode": "~5.1.0",
|
"angular-qrcode": "~5.1.0",
|
||||||
"angular-gettext": "~2.0.5",
|
"angular-gettext": "~2.0.5",
|
||||||
"animate.css": "~3.2.0",
|
"animate.css": "3.4.0",
|
||||||
"foundation": "zurb/bower-foundation#~5.5.1",
|
"foundation": "zurb/bower-foundation#~5.5.1",
|
||||||
"foundation-icon-fonts": "*",
|
"foundation-icon-fonts": "*",
|
||||||
"ng-lodash": "~0.2.0",
|
"ng-lodash": "~0.2.0",
|
||||||
|
|
|
@ -26,6 +26,16 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
this.isMobile = isMobile.any();
|
this.isMobile = isMobile.any();
|
||||||
this.addr = {};
|
this.addr = {};
|
||||||
|
|
||||||
|
// DISABLE ANIMATION ON CHROMEAPP
|
||||||
|
if (isChromeApp) {
|
||||||
|
var animatedSlideUp = 'full';
|
||||||
|
var animatedSlideRight = 'full';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
var animatedSlideUp = 'full animated slideInUp';
|
||||||
|
var animatedSlideRight = 'full animated slideInRight';
|
||||||
|
}
|
||||||
|
|
||||||
var disableScannerListener = $rootScope.$on('dataScanned', function(event, data) {
|
var disableScannerListener = $rootScope.$on('dataScanned', function(event, data) {
|
||||||
self.setForm(data);
|
self.setForm(data);
|
||||||
$rootScope.$emit('Local/SetTab', 'send');
|
$rootScope.$emit('Local/SetTab', 'send');
|
||||||
|
@ -107,7 +117,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
};
|
};
|
||||||
var modalInstance = $modal.open({
|
var modalInstance = $modal.open({
|
||||||
templateUrl: 'views/modals/copayers.html',
|
templateUrl: 'views/modals/copayers.html',
|
||||||
windowClass: 'full animated slideInUp',
|
windowClass: animatedSlideUp,
|
||||||
controller: ModalInstanceCtrl,
|
controller: ModalInstanceCtrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -148,7 +158,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
|
|
||||||
var modalInstance = $modal.open({
|
var modalInstance = $modal.open({
|
||||||
templateUrl: 'views/modals/wallets.html',
|
templateUrl: 'views/modals/wallets.html',
|
||||||
windowClass: 'full animated slideInUp',
|
windowClass: animatedSlideUp,
|
||||||
controller: ModalInstanceCtrl,
|
controller: ModalInstanceCtrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -352,7 +362,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
|
|
||||||
var modalInstance = $modal.open({
|
var modalInstance = $modal.open({
|
||||||
templateUrl: 'views/modals/txp-details.html',
|
templateUrl: 'views/modals/txp-details.html',
|
||||||
windowClass: 'full animated slideInRight',
|
windowClass: animatedSlideRight,
|
||||||
controller: ModalInstanceCtrl,
|
controller: ModalInstanceCtrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -498,7 +508,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
|
|
||||||
var modalInstance = $modal.open({
|
var modalInstance = $modal.open({
|
||||||
templateUrl: 'views/modals/customized-amount.html',
|
templateUrl: 'views/modals/customized-amount.html',
|
||||||
windowClass: 'full animated slideInUp',
|
windowClass: animatedSlideUp,
|
||||||
controller: ModalInstanceCtrl,
|
controller: ModalInstanceCtrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -889,7 +899,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
};
|
};
|
||||||
var modalInstance = $modal.open({
|
var modalInstance = $modal.open({
|
||||||
templateUrl: 'views/modals/paypro.html',
|
templateUrl: 'views/modals/paypro.html',
|
||||||
windowClass: 'full animated slideInUp',
|
windowClass: animatedSlideUp,
|
||||||
controller: ModalInstanceCtrl,
|
controller: ModalInstanceCtrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -1034,7 +1044,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
|
|
||||||
var modalInstance = $modal.open({
|
var modalInstance = $modal.open({
|
||||||
templateUrl: 'views/modals/tx-details.html',
|
templateUrl: 'views/modals/tx-details.html',
|
||||||
windowClass: 'full animated slideInRight',
|
windowClass: animatedSlideRight,
|
||||||
controller: ModalInstanceCtrl,
|
controller: ModalInstanceCtrl,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue