GODT-1325: Add "already logged in" notification

This commit is contained in:
Alexander Bilyak
2021-11-22 23:27:16 +00:00
committed by Jakub
parent 961742fa53
commit 4a2ac813d3
6 changed files with 58 additions and 2 deletions

View File

@ -57,6 +57,7 @@ QtObject {
root.updateIsLatestVersion,
root.loginConnectionError,
root.onlyPaidUsers,
root.alreadyLoggedIn,
root.enableBeta,
root.bugReportSendSuccess,
root.bugReportSendError,
@ -414,6 +415,29 @@ QtObject {
]
}
property Notification alreadyLoggedIn: Notification {
text: qsTr("This account is already signed it.")
icon: "./icons/ic-exclamation-circle-filled.svg"
type: Notification.NotificationType.Info
group: Notifications.Group.Configuration
Connections {
target: root.backend
onLoginAlreadyLoggedIn: {
root.alreadyLoggedIn.active = true
}
}
action: [
Action {
text: qsTr("OK")
onTriggered: {
root.alreadyLoggedIn.active = false
}
}
]
}
// Bug reports
property Notification bugReportSendSuccess: Notification {
text: qsTr("Thank you for the report. We'll get back to you as soon as we can.")