summaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml16
1 files changed, 15 insertions, 1 deletions
diff --git a/main.qml b/main.qml
index 41c04a5..304bfe0 100644
--- a/main.qml
+++ b/main.qml
@@ -6,6 +6,8 @@ ApplicationWindow {
property string imageBase
signal signUp(string brand)
function pushCatalog() {
+ busy.visible = false
+ busy.running = false
stack.push("Catalog.qml")
}
id: window
@@ -39,9 +41,21 @@ ApplicationWindow {
}
loginButton {
text: qsTr("Mulai berjualan!")
- onClicked: signUp(emailTextField.text)
+ onClicked: {
+ this.enabled = false
+ busy.running = true
+ busy.visible = true
+ signUp(emailTextField.text)
+ }
}
}
}
}
+
+ BusyIndicator {
+ id: busy
+ anchors.centerIn: parent
+ visible: false
+ running: false
+ }
}