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 committed by Jelle Spijker
parent a4d9beb9c2
commit 815aadb0d7
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A
4 changed files with 6 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)
}
}