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

@ -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

@ -54,6 +54,7 @@ Window
bannerBody: content.item && content.item.bannerBody
bannerIcon: content.item && content.item.bannerIcon
onRemoveBanner: content.item && content.item.onRemoveBanner
readMoreUrl: content.item.readMoreUrl && content.item.readMoreUrl
}
// Page title.

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

@ -14,6 +14,7 @@ ListView
property bool bannerVisible
property string bannerIcon
property string bannerBody
property string readMoreUrl
property var onRemoveBanner
width: parent.width

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;