From 2e2f23a0aef637b8b43362bb8a2dba16d5c02c25 Mon Sep 17 00:00:00 2001
From: obscuren <geffobscura@gmail.com>
Date: Tue, 12 Aug 2014 12:07:32 +0200
Subject: [PATCH] Properly hide elements on tx submit

---
 ethereal/assets/qml/views/transaction.qml | 21 +++++++++------------
 1 file 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 {
-- 
GitLab