Translate Preparing camera...
This commit is contained in:
parent
e9558cafaf
commit
547d61d740
1 changed files with 3 additions and 3 deletions
|
|
@ -1,14 +1,14 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.directives')
|
angular.module('copayApp.directives')
|
||||||
.directive('qrScanner', ['$rootScope', '$timeout', '$modal', 'isCordova',
|
.directive('qrScanner', ['$rootScope', '$timeout', '$modal', 'isCordova', 'gettextCatalog',
|
||||||
function($rootScope, $timeout, $modal, isCordova) {
|
function($rootScope, $timeout, $modal, isCordova, gettextCatalog) {
|
||||||
|
|
||||||
var controller = function($scope) {
|
var controller = function($scope) {
|
||||||
|
|
||||||
$scope.cordovaOpenScanner = function() {
|
$scope.cordovaOpenScanner = function() {
|
||||||
window.ignoreMobilePause = true;
|
window.ignoreMobilePause = true;
|
||||||
window.plugins.spinnerDialog.show(null, 'Preparing camera...', true);
|
window.plugins.spinnerDialog.show(null, gettextCatalog.getString('Preparing camera...'), true);
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
cordova.plugins.barcodeScanner.scan(
|
cordova.plugins.barcodeScanner.scan(
|
||||||
function onSuccess(result) {
|
function onSuccess(result) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue