aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-08-12 18:07:32 +0800
committerobscuren <geffobscura@gmail.com>2014-08-12 18:07:32 +0800
commit2e2f23a0aef637b8b43362bb8a2dba16d5c02c25 (patch)
tree1b9f0a1b20db357f2a5f364c81d32066d7c8c7d1
parent0c9c79a89ba7579f6a8b8614cd1601b7f0ddaf60 (diff)
downloaddexon-2e2f23a0aef637b8b43362bb8a2dba16d5c02c25.tar.gz
dexon-2e2f23a0aef637b8b43362bb8a2dba16d5c02c25.tar.zst
dexon-2e2f23a0aef637b8b43362bb8a2dba16d5c02c25.zip
Properly hide elements on tx submit
-rw-r--r--ethereal/assets/qml/views/transaction.qml21
1 files changed, 9 insertions, 12 deletions
diff --git a/ethereal/assets/qml/views/transaction.qml b/ethereal/assets/qml/views/transaction.qml
index e7fe529a0..4ede9e10b 100644
--- a/ethereal/assets/qml/views/transaction.qml
+++ b/ethereal/assets/qml/views/transaction.qml
@@ -28,11 +28,13 @@ Rectangle {
states: [
State{
name: "ERROR"
+
PropertyChanges { target: txResult; visible:true}
PropertyChanges { target: codeView; visible:true}
},
State {
name: "DONE"
+
PropertyChanges { target: txValue; visible:false}
PropertyChanges { target: txGas; visible:false}
PropertyChanges { target: txGasPrice; visible:false}
@@ -41,6 +43,8 @@ Rectangle {
PropertyChanges { target: txDataLabel; visible:false}
PropertyChanges { target: atLabel; visible:false}
PropertyChanges { target: txFuelRecipient; visible:false}
+ PropertyChanges { target: valueDenom; visible:false}
+ PropertyChanges { target: gasDenom; visible:false}
PropertyChanges { target: txResult; visible:true}
PropertyChanges { target: txOutput; visible:true}
@@ -48,12 +52,15 @@ Rectangle {
},
State {
name: "SETUP"
+
PropertyChanges { target: txValue; visible:true; text: ""}
- PropertyChanges { target: txGas; visible:true; text: ""}
- PropertyChanges { target: txGasPrice; visible:true; text: ""}
+ PropertyChanges { target: txGas; visible:true;}
+ PropertyChanges { target: txGasPrice; visible:true;}
PropertyChanges { target: codeView; visible:true; text: ""}
PropertyChanges { target: txButton; visible:true}
PropertyChanges { target: txDataLabel; visible:true}
+ PropertyChanges { target: valueDenom; visible:true}
+ PropertyChanges { target: gasDenom; visible:true}
PropertyChanges { target: txResult; visible:false}
PropertyChanges { target: txOutput; visible:false}
@@ -113,11 +120,6 @@ Rectangle {
validator: RegExpValidator { regExp: /\d*/ }
placeholderText: "Gas"
text: "500"
- /*
- onTextChanged: {
- contractFormReady()
- }
- */
}
Label {
id: atLabel
@@ -130,11 +132,6 @@ Rectangle {
placeholderText: "Gas price"
text: "10"
validator: RegExpValidator { regExp: /\d*/ }
- /*
- onTextChanged: {
- contractFormReady()
- }
- */
}
ComboBox {