From a6f5300b21187158675f9d609c621d48aaddef33 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Fri, 16 May 2014 12:12:11 -0300 Subject: [PATCH 1/2] better tx sent look --- index.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index dbd6c5ac9..03c1b2d04 100644 --- a/index.html +++ b/index.html @@ -427,14 +427,18 @@ Transaction finally rejected -

- - Sent at {{tx.sentTs | date:'medium'}} | - Transaction ID: +

+ + Sent + +

+ {{tx.sentTs | date:'medium'}}. + ID: {{tx.sentTxid}}

+

One signature missing

From 425703c4479242e32a13f03bb7f9f64b8a4a9ac5 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Fri, 16 May 2014 12:40:26 -0300 Subject: [PATCH 2/2] fixes in settings --- config.template.js | 20 +------------------- index.html | 4 +--- js/app.js | 15 +++++++++++++++ js/controllers/settings.js | 4 ++-- 4 files changed, 19 insertions(+), 24 deletions(-) diff --git a/config.template.js b/config.template.js index f97bc0ae8..888c72a60 100644 --- a/config.template.js +++ b/config.template.js @@ -1,6 +1,4 @@ 'use strict'; - -var localConfig = JSON.parse(localStorage.getItem('config')); var defaultConfig = { networkName: 'testnet', network: { @@ -99,25 +97,9 @@ var defaultConfig = { port: 3001 }, passphrase: { - iterations: 1000, + iterations: 100, storageSalt: 'mjuBtGybi/4=', }, themes: ['default'], verbose: 1, }; - -var config = defaultConfig; - -// Merge localConfig -if (localConfig) { - var count = 0; - for (name in localConfig) { - if (localConfig.hasOwnProperty(name)) { - config[name] = localConfig[name]; - } - } -} - -var log = function() { - if (config.verbose) console.log(arguments); -} diff --git a/index.html b/index.html index 03c1b2d04..4510d4b8a 100644 --- a/index.html +++ b/index.html @@ -26,8 +26,6 @@ - @@ -649,7 +647,7 @@ - Signin + Home diff --git a/js/app.js b/js/app.js index d048c71b2..8852fd0a4 100644 --- a/js/app.js +++ b/js/app.js @@ -1,5 +1,20 @@ 'use strict'; +var config = defaultConfig; +var localConfig = JSON.parse(localStorage.getItem('config')); + +if (localConfig) { + var count = 0; + for (name in localConfig) { + if (localConfig.hasOwnProperty(name)) { + config[name] = localConfig[name]; + } + } +} + +var log = function() { + if (config.verbose) console.log(arguments); +} var copay = require('copay'); diff --git a/js/controllers/settings.js b/js/controllers/settings.js index 815494d5c..b87237eef 100644 --- a/js/controllers/settings.js +++ b/js/controllers/settings.js @@ -1,7 +1,7 @@ 'use strict'; angular.module('copay.settings').controller('SettingsController', - function($scope, $rootScope, $window) { + function($scope, $rootScope, $window, $location) { $scope.title = 'Settings'; $scope.networkName = config.networkName; @@ -31,6 +31,6 @@ angular.module('copay.settings').controller('SettingsController', }) ); - $window.location.reload(); + $window.location.href= $window.location.origin + $window.location.pathname; }; });