status-desktop/ui/app/AppLayouts/Profile/controls/CommunityShowcaseDelegate.qml
Lukáš Tinkl a8eed304c0 feat: implement ProfileShowcase settings
Implement the UI part of Profile/Settings/Showcase:

- Communities/Accounts/Collectibles/Assets tabs
- drag and drop of items between "hidden" and "in showcase" sections
- ability to set individual items' visibility
- persistency (showcase saved across restarts), not exposed yet due to
  missing backend API

Closes #9936
2023-04-12 11:39:37 +02:00

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 : ""
}