aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrankie <frankie.pangilinan@consensys.net>2016-07-01 05:56:10 +0800
committerFrankie <frankie.pangilinan@consensys.net>2016-07-01 05:56:10 +0800
commit1b1bb92fd34343d2cec03d68e2b12de15934ebc2 (patch)
treee8e0ad67370646bfcacb280e940fa76033c92a9d
parent42cd0b69e76537022c7766cae430e496371818b6 (diff)
parent213c84336e1083f4abe278ac2f70c45124c6ab62 (diff)
downloadtangerine-wallet-browser-1b1bb92fd34343d2cec03d68e2b12de15934ebc2.tar
tangerine-wallet-browser-1b1bb92fd34343d2cec03d68e2b12de15934ebc2.tar.gz
tangerine-wallet-browser-1b1bb92fd34343d2cec03d68e2b12de15934ebc2.tar.bz2
tangerine-wallet-browser-1b1bb92fd34343d2cec03d68e2b12de15934ebc2.tar.lz
tangerine-wallet-browser-1b1bb92fd34343d2cec03d68e2b12de15934ebc2.tar.xz
tangerine-wallet-browser-1b1bb92fd34343d2cec03d68e2b12de15934ebc2.tar.zst
tangerine-wallet-browser-1b1bb92fd34343d2cec03d68e2b12de15934ebc2.zip
Merge branch 'master' into compactLayout
-rw-r--r--.gitattributes2
-rw-r--r--CHANGELOG.md1
-rw-r--r--app/scripts/lib/config-manager.js6
-rw-r--r--app/scripts/lib/idStore.js3
-rw-r--r--test/unit/config-manager-test.js6
-rw-r--r--ui/app/actions.js5
6 files changed, 12 insertions, 11 deletions
diff --git a/.gitattributes b/.gitattributes
index 212566614..a19ade077 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1 +1 @@
-* text=auto \ No newline at end of file
+CHANGELOG.md merge=union
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 36e186245..769a42825 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@
- Added network name next to network indicator
- Add copy transaction hash button to completed transaction list items.
- Unify wording for transaction approve/reject options on notifications and the extension.
+- Fix bug where confirmation view would be shown twice.
## 2.4.5 2016-06-29
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js
index 0af82c89c..caaae8a75 100644
--- a/app/scripts/lib/config-manager.js
+++ b/app/scripts/lib/config-manager.js
@@ -149,12 +149,6 @@ ConfigManager.prototype.getCurrentRpcAddress = function () {
}
}
-ConfigManager.prototype.clearWallet = function () {
- var data = this.getConfig()
- delete data.wallet
- this.setData(data)
-}
-
ConfigManager.prototype.setData = function (data) {
this.migrator.saveData(data)
}
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js
index f705c07a7..cbc8c1e48 100644
--- a/app/scripts/lib/idStore.js
+++ b/app/scripts/lib/idStore.js
@@ -43,9 +43,6 @@ function IdentityStore (opts = {}) {
IdentityStore.prototype.createNewVault = function (password, entropy, cb) {
delete this._keyStore
- if (this.configManager) {
- this.configManager.clearWallet()
- }
this._createIdmgmt(password, null, entropy, (err) => {
if (err) return cb(err)
diff --git a/test/unit/config-manager-test.js b/test/unit/config-manager-test.js
index 7891c5c9e..8974a6bc5 100644
--- a/test/unit/config-manager-test.js
+++ b/test/unit/config-manager-test.js
@@ -22,6 +22,7 @@ describe('config-manager', function() {
describe('#setConfirmed', function() {
it('should make getConfirmed return true once set', function() {
+ assert.equal(configManager.getConfirmed(), false)
configManager.setConfirmed(true)
var result = configManager.getConfirmed()
assert.equal(result, true)
@@ -63,8 +64,9 @@ describe('config-manager', function() {
provider: {
type: 'rpc',
rpcTarget: 'foobar'
- }
+ },
}
+ configManager.setConfirmed(true)
configManager.setConfig(testConfig)
var testWallet = {
@@ -75,6 +77,7 @@ describe('config-manager', function() {
var result = configManager.getData()
assert.equal(result.wallet.name, testWallet.name, 'wallet name is set')
assert.equal(result.config.provider.rpcTarget, testConfig.provider.rpcTarget)
+ assert.equal(configManager.getConfirmed(), true)
testConfig.provider.type = 'something else!'
configManager.setConfig(testConfig)
@@ -83,6 +86,7 @@ describe('config-manager', function() {
assert.equal(result.wallet.name, testWallet.name, 'wallet name is set')
assert.equal(result.config.provider.rpcTarget, testConfig.provider.rpcTarget)
assert.equal(result.config.provider.type, testConfig.provider.type)
+ assert.equal(configManager.getConfirmed(), true)
})
})
diff --git a/ui/app/actions.js b/ui/app/actions.js
index 0cbc3b9e6..c6b57d29d 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -47,6 +47,7 @@ var actions = {
unlockInProgress: unlockInProgress,
// error handling
displayWarning: displayWarning,
+ showWarning: showWarning, // alias
DISPLAY_WARNING: 'DISPLAY_WARNING',
HIDE_WARNING: 'HIDE_WARNING',
hideWarning: hideWarning,
@@ -507,6 +508,10 @@ function hideLoadingIndication () {
}
}
+function showWarning (text) {
+ return this.displayWarning(text)
+}
+
function displayWarning (text) {
return {
type: actions.DISPLAY_WARNING,