aboutsummaryrefslogtreecommitdiff
path: root/src/scenes/add_server_wizard
diff options
context:
space:
mode:
authorDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-08-01 01:58:32 +0200
committerDaniel Teichmann <daniel.teichmann@das-netzwerkteam.de>2021-08-01 01:58:32 +0200
commitefa44c931674e498c39fc59091cf1f8654ac97a5 (patch)
tree6fa2a949f680c5abcd7d919164ad9c5c8c1fa66c /src/scenes/add_server_wizard
parent18c2b837d33c040a21f84c444d8c554769f1dc58 (diff)
downloadRWA.Support.DesktopApp-efa44c931674e498c39fc59091cf1f8654ac97a5.tar.gz
RWA.Support.DesktopApp-efa44c931674e498c39fc59091cf1f8654ac97a5.tar.bz2
RWA.Support.DesktopApp-efa44c931674e498c39fc59091cf1f8654ac97a5.zip
Fix typos, too long lines, various styling stuff
Diffstat (limited to 'src/scenes/add_server_wizard')
-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)
}
}