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

@ -14,6 +14,7 @@ Packages
bannerVisible: CuraApplication.shouldShowMarketPlaceManagePackagesBanner()
bannerIcon: "ArrowDoubleCircleRight"
bannerBody: catalog.i18nc("@text", "Manage your Ultimaker Cura plugins and material profiles here. Make sure to keep your plugins up to date and backup your setup regularly.")
readMoreUrl: "" // TODO add when support page is ready
onRemoveBanner: function() {
CuraApplication.closeMarketPlaceManagePackagesBanner();
bannerVisible = false;

View file

@ -10,6 +10,7 @@ Packages
bannerVisible: CuraApplication.shouldShowMarketPlaceMaterialBanner()
bannerIcon: "Spool"
bannerBody: catalog.i18nc("@text", "Streamline your workflow and customize your Ultimaker Cura experience with plugins contributed by our amazing community of users.")
readMoreUrl: "" // TODO add when support page is ready
onRemoveBanner: function() {
CuraApplication.closeMarketPlaceMaterialBanner();
bannerVisible = false;

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)
}
}

View file

@ -10,6 +10,7 @@ Packages
bannerVisible: CuraApplication.shouldShowMarketPlacePluginBanner()
bannerIcon: "Shop"
bannerBody: catalog.i18nc("@text", "Select and install material profiles optimised for your Ultimaker 3D printers.")
readMoreUrl: "" // TODO add when support page is ready
onRemoveBanner: function() {
CuraApplication.closeMarketPlacePluginBanner();
bannerVisible = false;