2023-03-14 02:52:16 +00:00
|
|
|
import QtQuick 2.14
|
|
|
|
import QtQuick.Layouts 1.14
|
|
|
|
|
|
|
|
import StatusQ.Core 0.1
|
|
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
import StatusQ.Components 0.1
|
|
|
|
import StatusQ.Core.Utils 0.1
|
|
|
|
|
|
|
|
import shared.controls 1.0
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
id: root
|
|
|
|
|
|
|
|
property string primaryText
|
|
|
|
property string secondaryText
|
2023-08-21 10:58:21 +00:00
|
|
|
property string errorDetails
|
2023-03-14 02:52:16 +00:00
|
|
|
|
|
|
|
spacing: 12
|
|
|
|
|
|
|
|
StatusBaseText {
|
|
|
|
Layout.fillWidth: true
|
|
|
|
horizontalAlignment: Text.AlignHCenter
|
|
|
|
text: root.primaryText
|
|
|
|
font.pixelSize: 17
|
|
|
|
color: Theme.palette.dangerColor1
|
|
|
|
}
|
|
|
|
|
2023-08-21 10:58:21 +00:00
|
|
|
ErrorDetails {
|
2023-03-14 02:52:16 +00:00
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.leftMargin: 60
|
|
|
|
Layout.rightMargin: 60
|
2023-08-21 10:58:21 +00:00
|
|
|
Layout.preferredHeight: implicitHeight
|
|
|
|
title: root.secondaryText
|
|
|
|
details: root.errorDetails
|
2023-03-14 02:52:16 +00:00
|
|
|
}
|
|
|
|
}
|