Only show manage buttons in manage tab or detail view

Contributes to: CURA-8587
This commit is contained in:
Jelle Spijker 2021-12-07 11:25:16 +01:00
parent f6966c25fb
commit 1c0e484069
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A
5 changed files with 12 additions and 0 deletions

View file

@ -19,6 +19,7 @@ ListView
property string bannerText
property string bannerReadMoreUrl
property var onRemoveBanner
property bool packagesManageableInListView
clip: true
@ -80,6 +81,7 @@ ListView
PackageCard
{
manageableInListView: packages.packagesManageableInListView
packageData: model.package
width: parent.width - UM.Theme.getSize("default_margin").width - UM.Theme.getSize("narrow_margin").width
color: cardMouseArea.containsMouse ? UM.Theme.getColor("action_button_hovered") : UM.Theme.getColor("main_background")