aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/qml/views/transaction.qml
diff options
context:
space:
mode:
Diffstat (limited to 'ethereal/assets/qml/views/transaction.qml')
-rw-r--r--ethereal/assets/qml/views/transaction.qml17
1 files changed, 10 insertions, 7 deletions
diff --git a/ethereal/assets/qml/views/transaction.qml b/ethereal/assets/qml/views/transaction.qml
index 61a1b81cd..80e1670f8 100644
--- a/ethereal/assets/qml/views/transaction.qml
+++ b/ethereal/assets/qml/views/transaction.qml
@@ -18,13 +18,8 @@ Rectangle {
Column {
id: mainContractColumn
anchors.fill: parent
- function contractFormReady(){
- if(codeView.text.length > 0 && txValue.text.length > 0 && txGas.text.length > 0 && txGasPrice.length > 0) {
- txButton.state = "READY"
- }else{
- txButton.state = "NOTREADY"
- }
- }
+
+
states: [
State{
name: "ERROR"
@@ -208,4 +203,12 @@ Rectangle {
}
}
}
+
+ function contractFormReady(){
+ if(codeView.text.length > 0 && txValue.text.length > 0 && txGas.text.length > 0 && txGasPrice.length > 0) {
+ txButton.state = "READY"
+ }else{
+ txButton.state = "NOTREADY"
+ }
+ }
}