aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-08-23 06:22:00 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-08-23 06:22:00 +0800
commit5893f2fd19bdab10a017c56202f5fe0cf440d29e (patch)
treebb96520170c72656c08135bed983fa5db4dffef7 /ui
parent1528fae9ea2bedd84129639a8a37aa90676f9631 (diff)
downloadtangerine-wallet-browser-5893f2fd19bdab10a017c56202f5fe0cf440d29e.tar
tangerine-wallet-browser-5893f2fd19bdab10a017c56202f5fe0cf440d29e.tar.gz
tangerine-wallet-browser-5893f2fd19bdab10a017c56202f5fe0cf440d29e.tar.bz2
tangerine-wallet-browser-5893f2fd19bdab10a017c56202f5fe0cf440d29e.tar.lz
tangerine-wallet-browser-5893f2fd19bdab10a017c56202f5fe0cf440d29e.tar.xz
tangerine-wallet-browser-5893f2fd19bdab10a017c56202f5fe0cf440d29e.tar.zst
tangerine-wallet-browser-5893f2fd19bdab10a017c56202f5fe0cf440d29e.zip
Add data field to send token screen
Diffstat (limited to 'ui')
-rw-r--r--ui/app/send.js35
1 files changed, 34 insertions, 1 deletions
diff --git a/ui/app/send.js b/ui/app/send.js
index 02a38deaf..ef4e92e26 100644
--- a/ui/app/send.js
+++ b/ui/app/send.js
@@ -53,6 +53,8 @@ function SendTransactionScreen () {
amount: '0.0001', // see L544
gasPrice: '4a817c800',
gas: '0x7b0d',
+ txData: null,
+ memo: '',
},
}
}
@@ -220,7 +222,38 @@ SendTransactionScreen.prototype.render = function () {
h('div', {}, ['Transaction memo (optional)']),
- h('input.large-input.send-screen-input', {}, [
+ h('input.large-input.send-screen-input', {
+ onChange: () => {
+ this.setState({
+ newTx: Object.assign(
+ this.state.newTx,
+ {
+ memo: event.target.value,
+ }
+ ),
+ })
+ },
+ }, [
+ ]),
+
+ ]),
+
+ h('div.send-screen-input-wrapper', {}, [
+
+ h('div', {}, ['Data (optional)']),
+
+ h('input.large-input.send-screen-input', {
+ onChange: () => {
+ this.setState({
+ newTx: Object.assign(
+ this.state.newTx,
+ {
+ txData: event.target.value,
+ }
+ ),
+ })
+ },
+ }, [
]),
]),