fix(OwnerToken): Change owner token subtitle depending on user profile
Fix #12905
This commit is contained in:
parent
6f3a180f41
commit
42a80c2c10
|
@ -61,10 +61,14 @@ StatusScrollView {
|
||||||
|
|
||||||
function getRemainingInfo(isOwnerToken, isTMasterToken,
|
function getRemainingInfo(isOwnerToken, isTMasterToken,
|
||||||
remainingSupply, supply, isInfiniteSupply) {
|
remainingSupply, supply, isInfiniteSupply) {
|
||||||
// Owner token use case:
|
// Owner token and owner profile use case:
|
||||||
if(isOwnerToken)
|
if(isOwnerToken && root.isOwner)
|
||||||
return qsTr("1 of 1 (you hodl)")
|
return qsTr("1 of 1 (you hodl)")
|
||||||
|
|
||||||
|
// Owner token but no owner profile use case:
|
||||||
|
if(isOwnerToken && !root.isOwner)
|
||||||
|
return qsTr("1 of 1")
|
||||||
|
|
||||||
// TMaster token use case:
|
// TMaster token use case:
|
||||||
if(isTMasterToken)
|
if(isTMasterToken)
|
||||||
return "∞"
|
return "∞"
|
||||||
|
|
Loading…
Reference in New Issue