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.qml15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/scenes/add_server_wizard/Scene_step_1.qml b/src/scenes/add_server_wizard/Scene_step_1.qml
index abd761d..e57f8a4 100644
--- a/src/scenes/add_server_wizard/Scene_step_1.qml
+++ b/src/scenes/add_server_wizard/Scene_step_1.qml
@@ -5,7 +5,8 @@ import QtQuick.Controls 2.2
import QtQuick.Controls.Material 2.3
/*!
- This .qml file is a Scene which can be loaded through for example a StackView (main_content in main.qml).
+ * This .qml file is a Scene which can be loaded through for
+ * example a StackView (main_content in main.qml).
*/
Item {
@@ -14,17 +15,21 @@ Item {
Connections {
target: add_server_wizard
- onStep1Success: {
+ function onStep1Success() {
// Go onto the first page of the stack.
main_content_pop(null)
- mainqmladaptor.showToast(qsTr("Successfully added remote web app host."), 5000);
+ mainqmladaptor.showToast(qsTr("Successfully added remote web app host."),
+ 5000,
+ ToastType.ToastSuccess);
}
}
Connections {
target: add_server_wizard
- onStep1Failed: {
- mainqmladaptor.showToast(reason, 3000);
+ function onStep1Failed(reason, toast_type) {
+ mainqmladaptor.showToast(reason,
+ 5000,
+ toast_type)
}
}