Directly use bindings in banner pages

CURA-8564
This commit is contained in:
casper 2021-11-29 11:50:52 +01:00
parent f1ef1c283e
commit e5c8d5456d
4 changed files with 8 additions and 33 deletions

View file

@ -11,12 +11,12 @@ Packages
{
pageTitle: catalog.i18nc("@header", "Manage packages")
bannerVisible: CuraApplication.shouldShowMarketPlaceManagePackagesBanner()
bannerVisible: UM.Preferences.getValue("cura/market_place_show_manage_packages_banner");
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();
UM.Preferences.setValue("cura/market_place_show_manage_packages_banner", false);
bannerVisible = false;
}