2023-03-20 12:29:05 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
2024-03-03 16:34:08 +00:00
|
|
|
import StatusQ 0.1
|
2023-03-20 12:29:05 +00:00
|
|
|
import utils 1.0
|
|
|
|
|
|
|
|
import AppLayouts.Profile.controls 1.0
|
|
|
|
|
|
|
|
ProfileShowcasePanel {
|
|
|
|
id: root
|
|
|
|
|
2024-02-15 17:26:05 +00:00
|
|
|
emptyInShowcasePlaceholderText: qsTr("Drag communities here to display in showcase")
|
|
|
|
emptyHiddenPlaceholderText: qsTr("Communities here will be hidden from your Profile")
|
2024-03-03 16:34:08 +00:00
|
|
|
emptySearchPlaceholderText: qsTr("No communities matching search")
|
|
|
|
searchPlaceholderText: qsTr("Search community name or role")
|
2024-02-29 09:07:35 +00:00
|
|
|
delegate: ProfileShowcasePanelDelegate {
|
2024-02-28 12:19:14 +00:00
|
|
|
title: model ? model.name : ""
|
2024-03-03 16:34:08 +00:00
|
|
|
secondaryTitle: (model && model.memberRole) ? ProfileUtils.getMemberRoleText(model.memberRole) : qsTr("Member")
|
2024-02-28 12:19:14 +00:00
|
|
|
hasImage: model && !!model.image
|
|
|
|
|
|
|
|
icon.name: model ? model.name : ""
|
|
|
|
icon.source: model ? model.image : ""
|
|
|
|
icon.color: model ? model.color : ""
|
2023-03-20 12:29:05 +00:00
|
|
|
}
|
|
|
|
}
|