Fix placeholder names for supplies

This commit is contained in:
Anton Thomasson 2021-02-13 15:23:14 +01:00
parent 187fd4226e
commit f7790e2ed3

View file

@ -9,8 +9,8 @@ import "../components"
property int level: 100
property int high_level: 100
property int low_level: 0
property string name: qsTr("Unknown supply")
property string type: qsTr("Unknown type")
property string name: ""
property string type: ""
spacing: Theme.paddingMedium
bottomPadding: Theme.paddingMedium
@ -34,12 +34,12 @@ import "../components"
anchors.verticalCenter: parent.verticalCenter
Label
{
text: name
text: name != "" ? name : qsTr("Unknown supply")
font.pixelSize: Theme.fontSizeExtraSmall
}
Label
{
text: type
text: type != "" ? type : qsTr("Unknown type")
font.pixelSize: Theme.fontSizeExtraSmall
color: Theme.secondaryColor
}