Add links to read me support pages

Note that since the support pages are not yet ready the "read more"
buttons are hidden. Once the correct link is added they become visible
again.
This commit is contained in:
casper 2021-11-27 13:48:38 +01:00
parent 964de6c7fb
commit f1ef1c283e
6 changed files with 8 additions and 1 deletions

View file

@ -15,6 +15,7 @@ Rectangle
property string bannerIcon
property string bannerBody
property var onRemoveBanner
property string readMoreUrl
visible: bannerVisible
@ -121,6 +122,7 @@ Rectangle
Cura.TertiaryButton
{
visible: readMoreUrl !== ""
id: readMoreButton
text: "Learn More"
textFont: UM.Theme.getFont("default")
@ -131,6 +133,6 @@ Rectangle
isIconOnRightSide: true
height: fontMetrics.height
onClicked: print("TODO")
onClicked: Qt.openUrlExternally(readMoreUrl)
}
}