Show error if the upload failed

Contributes to issue CURA-8609.
This commit is contained in:
Ghostkeeper 2021-10-11 14:57:21 +02:00
parent ffee4a2443
commit ffd3277854
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
3 changed files with 23 additions and 5 deletions

View file

@ -23,6 +23,7 @@ Window
property variant materialManagementModel
property alias pageIndex: swipeView.currentIndex
property alias syncStatusText: syncStatusLabel.text
SwipeView
{
@ -358,6 +359,19 @@ Window
return materialManagementModel.exportUploadStatus != "uploading";
}
}
Label
{
id: syncStatusLabel
anchors.right: syncButton.left
anchors.rightMargin: UM.Theme.getSize("default_margin").width
anchors.verticalCenter: parent.verticalCenter
visible: syncButton.visible
text: ""
color: UM.Theme.getColor("text")
font: UM.Theme.getFont("default")
}
Item
{
anchors.right: parent.right