Display inactive DL projects as disabled
Some checks failed
conan-package / conan-package (push) Has been cancelled
unit-test / Run unit tests (push) Has been cancelled

CURA-12557
This commit is contained in:
Erwan MATHIEU 2025-06-11 15:48:09 +02:00
parent 2e9999ed2d
commit a739fd21f5
5 changed files with 55 additions and 17 deletions

View file

@ -159,17 +159,30 @@ Item
Repeater
{
model: manager.digitalFactoryProjectModel
delegate: ProjectSummaryCard
delegate: Item
{
id: projectSummaryCard
imageSource: model.thumbnailUrl || "../images/placeholder.svg"
projectNameText: model.displayName
projectUsernameText: model.username
projectLastUpdatedText: "Last updated: " + model.lastUpdated
width: parent.width
height: projectSummaryCard.height
onClicked:
UM.TooltipArea
{
manager.selectedProjectIndex = index
anchors.fill: parent
text: "This project is inactive and cannot be used."
enabled: !model.active
}
ProjectSummaryCard
{
id: projectSummaryCard
imageSource: model.thumbnailUrl || "../images/placeholder.svg"
projectNameText: model.displayName
projectUsernameText: model.username
projectLastUpdatedText: "Last updated: " + model.lastUpdated
enabled: model.active
onClicked: {
manager.selectedProjectIndex = index
}
}
}
}