fix: disable on testnet

This commit is contained in:
Richard Ramos 2020-08-28 10:25:22 -04:00 committed by Iuri Matias
parent 8bf2e394c6
commit d134ef8e45
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,6 @@ proc extractCoordinates*(pubkey: string):tuple[x: string, y:string] =
result = ("0x" & pubkey[4..67], "0x" & pubkey[68..131])
proc registerUsername*(username:string, address: EthAddress, pubKey: string, password: string): string =
echo username, "................."
let
label = fromHex(FixedBytes[32], label(username))
coordinates = extractCoordinates(pubkey)

View File

@ -282,8 +282,9 @@ Item {
anchors.bottom: parent.bottom
anchors.bottomMargin: Style.current.padding
anchors.horizontalCenter: parent.horizontalCenter
disabled: profileModel.network !== "mainnet_rpc"
//% "Start"
label: qsTrId("start")
label: !disabled ? qsTrId("start") : qsTr("Only available on Mainnet")
onClicked: startBtnClicked()
}
}