mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 13:56:10 +00:00
0ab8a62896
- Renamed main `CommunitiesPortal` folder to `Communities`. - Created new `layouts` folder. - Moved layout files from chat to communities. - Created new `helpers` folder. - Moved helpers files from chat to communities. - Moved `controls/community` files from chat to communities `controls`. - Moved `panels/communities` files from chat to communities `panels`. - Moved `popups/community` files from chat to communities `popups`. - Moved `views/community` files from chat to communities `views`. - Moved `CommunityBanner` file from shared to `Communities/controls`. Only used in communities context. - Moved `CommunitySettingsView` and `CommunityColumnView` files from chat to communities `views`. - Moved `PermissionsStore.qml` file to `shared/stores`. - Updated imports. - Updated storybook. Part of #6204
36 lines
935 B
QML
36 lines
935 B
QML
pragma Singleton
|
|
|
|
import QtQml 2.15
|
|
|
|
QtObject {
|
|
enum Category {
|
|
Community, Own, General
|
|
}
|
|
|
|
function getCategoryLabelForAsset(category) {
|
|
switch (category) {
|
|
case TokenCategories.Category.Community:
|
|
return qsTr("Community assets")
|
|
case TokenCategories.Category.Own:
|
|
return qsTr("Your assets")
|
|
case TokenCategories.Category.General:
|
|
return qsTr("All listed assets")
|
|
}
|
|
|
|
return ""
|
|
}
|
|
|
|
function getCategoryLabelForCollectible(category) {
|
|
switch (category) {
|
|
case TokenCategories.Category.Community:
|
|
return qsTr("Community collectibles")
|
|
case TokenCategories.Category.Own:
|
|
return qsTr("Your collectibles")
|
|
case TokenCategories.Category.General:
|
|
return qsTr("All collectibles")
|
|
}
|
|
|
|
return ""
|
|
}
|
|
}
|