aboutsummaryrefslogtreecommitdiff
path: root/src/scenes/add_server_wizard/Scene_step_1.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenes/add_server_wizard/Scene_step_1.qml')
-rw-r--r--src/scenes/add_server_wizard/Scene_step_1.qml32
1 files changed, 30 insertions, 2 deletions
diff --git a/src/scenes/add_server_wizard/Scene_step_1.qml b/src/scenes/add_server_wizard/Scene_step_1.qml
index 2061db1..2eb6eaa 100644
--- a/src/scenes/add_server_wizard/Scene_step_1.qml
+++ b/src/scenes/add_server_wizard/Scene_step_1.qml
@@ -2,7 +2,6 @@ import QtQuick 2.9
import QtQuick.Window 2.2
import QtQuick.Extras 1.4
import QtQuick.Controls 2.2
-import QtQuick.Dialogs 1.2
import QtQuick.Controls.Material 2.3
/*!
@@ -11,13 +10,42 @@ import QtQuick.Controls.Material 2.3
Item {
id: scene_server_wizard_step_1
- objectName: "Scene_server_wizard_step_1"
+ objectName: "Scene_step_1"
+
+ Connections {
+ target: add_server_wizard
+ onStep1Success: {
+ //main_content_push("scenes/add_server_wizard/Scene_step_2.qml", StackView.Transition)
+ main_content_pop(null)
+ mainqmladaptor.showToast(qsTr("Successfully added server address."), 5000);
+ }
+ }
+
+ Connections {
+ target: add_server_wizard
+ onStep1Failed: {
+ mainqmladaptor.showToast(reason, 3000);
+ }
+ }
Rectangle {
id: rectangle
anchors.fill: parent
color: Material.background
+ Button {
+ id: next_step1_button
+ text: qsTr("Next Step")
+ anchors.bottom: parent.bottom
+ anchors.bottomMargin: 15
+ anchors.right: parent.right
+ anchors.rightMargin: 15
+
+ onClicked: {
+ add_server_wizard.processStep1(host_url.text)
+ }
+ }
+
Text {
color: Material.foreground
id: title