aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib/config-manager.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2016-04-26 05:34:43 +0800
committerkumavis <kumavis@users.noreply.github.com>2016-04-26 05:34:43 +0800
commit7497b2c8135324382af019d8705c688d71064edc (patch)
treeb032651204c21562a2431f3d3121f9ac81fe4c86 /app/scripts/lib/config-manager.js
parent652c1d96c1a80864218fa4dadf7aa0f4102a583b (diff)
parent82ac8bde5d246b58e90a7e428ee685cf1ee7c351 (diff)
downloadtangerine-wallet-browser-7497b2c8135324382af019d8705c688d71064edc.tar
tangerine-wallet-browser-7497b2c8135324382af019d8705c688d71064edc.tar.gz
tangerine-wallet-browser-7497b2c8135324382af019d8705c688d71064edc.tar.bz2
tangerine-wallet-browser-7497b2c8135324382af019d8705c688d71064edc.tar.lz
tangerine-wallet-browser-7497b2c8135324382af019d8705c688d71064edc.tar.xz
tangerine-wallet-browser-7497b2c8135324382af019d8705c688d71064edc.tar.zst
tangerine-wallet-browser-7497b2c8135324382af019d8705c688d71064edc.zip
Merge pull request #142 from MetaMask/DetailViewFirst
Make account detail view into main view
Diffstat (limited to 'app/scripts/lib/config-manager.js')
-rw-r--r--app/scripts/lib/config-manager.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/scripts/lib/config-manager.js b/app/scripts/lib/config-manager.js
index c79dc7a8f..102327c2d 100644
--- a/app/scripts/lib/config-manager.js
+++ b/app/scripts/lib/config-manager.js
@@ -102,6 +102,17 @@ ConfigManager.prototype.setWallet = function(wallet) {
this.setData(data)
}
+ConfigManager.prototype.getSelectedAccount = function() {
+ var config = this.getConfig()
+ return config.selectedAccount
+}
+
+ConfigManager.prototype.setSelectedAccount = function(address) {
+ var config = this.getConfig()
+ config.selectedAccount = address
+ this.setConfig(config)
+}
+
ConfigManager.prototype.getWallet = function() {
return this.migrator.getData().wallet
}