2023-02-15 21:45:37 +00:00
|
|
|
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:
|
2023-03-23 21:45:45 +00:00
|
|
|
return qsTr("All listed assets")
|
2023-02-15 21:45:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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 ""
|
|
|
|
}
|
|
|
|
}
|