diff options
-rw-r--r-- | main.qml | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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 + } } |