status-desktop/ui/app/AppLayouts/Profile/controls/CommunityShowcaseDelegate.qml

12 lines
434 B
QML

import QtQuick 2.15
ShowcaseDelegate {
title: !!showcaseObj && !!showcaseObj.name ? showcaseObj.name : ""
secondaryTitle: !!showcaseObj && !!showcaseObj.amISectionAdmin ? qsTr("Admin") : qsTr("Member")
hasImage: !!showcaseObj ? showcaseObj.image : false
icon.name: !!showcaseObj ? showcaseObj.name : ""
icon.source: !!showcaseObj ? showcaseObj.image : ""
icon.color: !!showcaseObj ? showcaseObj.color : ""
}