Hides backup button on mobile devices since the mobile browsers are not supporting downloading files, as they don't have access to the FS of the device.
This commit is contained in:
parent
6dcc161bf9
commit
ce378ef09e
2 changed files with 4 additions and 2 deletions
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('MoreController',
|
||||
function($scope, $rootScope, $location, $filter, backupService, walletFactory, controllerUtils, notification, rateService) {
|
||||
function($scope, $rootScope, $location, $filter, backupService, walletFactory, controllerUtils, notification, rateService, isMobile) {
|
||||
var w = $rootScope.wallet;
|
||||
$scope.isMobile = isMobile.any();
|
||||
|
||||
$scope.unitOpts = [{
|
||||
name: 'Satoshis (100,000,000 satoshis = 1BTC)',
|
||||
|
|
@ -68,6 +69,7 @@ angular.module('copayApp.controllers').controller('MoreController',
|
|||
$scope.priv = w.privateKey.toObj().extendedPrivateKeyString;
|
||||
|
||||
$scope.downloadBackup = function() {
|
||||
console.log(window.mobilecheck());
|
||||
backupService.download(w);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<div class="backup" ng-controller="MoreController">
|
||||
<h1 translate>Settings </h1>
|
||||
<div class="oh large-12 columns panel">
|
||||
<div class="oh large-12 columns panel" ng-if="!isMobile()">
|
||||
<h3><i class="fi-download m10r"></i> <span translate>Backup</span> </h3>
|
||||
<p translate class="large-8 columns text-gray">It's important to backup your wallet so that you can recover it in case of disaster</p>
|
||||
<div class="large-4 columns">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue