diff --git a/public/views/preferencesInformation.html b/public/views/preferencesInformation.html
index 1556e2df9..9e94fde71 100644
--- a/public/views/preferencesInformation.html
+++ b/public/views/preferencesInformation.html
@@ -22,7 +22,7 @@
-
+
Wallet Id
{{walletId}}
@@ -89,7 +89,7 @@
Extended Public Keys
-
+
Copayer {{$index}}
@@ -105,7 +105,7 @@
Last Wallet Addresses
- -
+
-
{{a.address}}
@@ -131,7 +131,7 @@
Balance By Address
-
-
+
-
{{a.address}}
diff --git a/src/js/controllers/preferencesInformation.js b/src/js/controllers/preferencesInformation.js
index 69d165023..b11e07108 100644
--- a/src/js/controllers/preferencesInformation.js
+++ b/src/js/controllers/preferencesInformation.js
@@ -1,13 +1,14 @@
'use strict';
angular.module('copayApp.controllers').controller('preferencesInformation',
- function($scope, $log, $timeout, platformInfo, gettextCatalog, lodash, profileService, storageService, configService, go, bitcore) {
+ function($scope, $log, $timeout, platformInfo, gettextCatalog, lodash, profileService, configService, go) {
var base = 'xpub';
var fc = profileService.focusedClient;
var c = fc.credentials;
var walletId = c.walletId;
var config = configService.getSync();
var b = 1;
+ var isCordova = platformInfo.isCordova;
config.colorFor = config.colorFor || {};
$scope.init = function() {
@@ -109,6 +110,13 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
if (b != 5) return b++;
save('#202020');
- }
+ };
+
+ $scope.copyToClipboard = function(data) {
+ if (isCordova) {
+ window.cordova.plugins.clipboard.copy(data);
+ window.plugins.toast.showShortCenter(gettextCatalog.getString('Copied to clipboard'));
+ }
+ };
});