mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 14:54:48 +00:00
a9b5d8fcf7
- Added searcher input in header. - Added 2 filter proxies for hidden and inshowcase models depending on search text. - Added filter expression per showcase tab (accounts, collectibles and communities). - Added specific placeholder when search empty. - Added specific logic when search active. - Added search validation. Closes #13508
25 lines
838 B
QML
25 lines
838 B
QML
import QtQuick 2.15
|
|
|
|
import StatusQ 0.1
|
|
import utils 1.0
|
|
|
|
import AppLayouts.Profile.controls 1.0
|
|
|
|
ProfileShowcasePanel {
|
|
id: root
|
|
|
|
emptyInShowcasePlaceholderText: qsTr("Drag communities here to display in showcase")
|
|
emptyHiddenPlaceholderText: qsTr("Communities here will be hidden from your Profile")
|
|
emptySearchPlaceholderText: qsTr("No communities matching search")
|
|
searchPlaceholderText: qsTr("Search community name or role")
|
|
delegate: ProfileShowcasePanelDelegate {
|
|
title: model ? model.name : ""
|
|
secondaryTitle: (model && model.memberRole) ? ProfileUtils.getMemberRoleText(model.memberRole) : qsTr("Member")
|
|
hasImage: model && !!model.image
|
|
|
|
icon.name: model ? model.name : ""
|
|
icon.source: model ? model.image : ""
|
|
icon.color: model ? model.color : ""
|
|
}
|
|
}
|