fix: typos and switch statement string literals
remove console log fix last typo
This commit is contained in:
parent
7c4bae5240
commit
0abaa61067
|
@ -72,21 +72,10 @@ Item {
|
||||||
width: 624
|
width: 624
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
||||||
StyledText {
|
|
||||||
id: sectionTitle
|
|
||||||
text: ""
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.leftMargin: Style.current.bigPadding
|
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.topMargin: Style.current.bigPadding
|
|
||||||
font.weight: Font.Bold
|
|
||||||
font.pixelSize: 20
|
|
||||||
}
|
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: circleAt
|
id: circleAt
|
||||||
anchors.top: sectionTitle.bottom
|
anchors.top: parent.top
|
||||||
anchors.topMargin: Style.current.bigPadding
|
anchors.topMargin: Style.current.bigPadding*2
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
width: 60
|
width: 60
|
||||||
height: 60
|
height: 60
|
||||||
|
@ -143,17 +132,17 @@ Item {
|
||||||
loading = false;
|
loading = false;
|
||||||
ensStatus = ensResult;
|
ensStatus = ensResult;
|
||||||
switch(ensResult){
|
switch(ensResult){
|
||||||
case Constants.ens_available:
|
case "available":
|
||||||
case Constants.ens_owned:
|
case "owned":
|
||||||
case Constants.ens_connected:
|
case "connected":
|
||||||
case Constants.ens_connected_dkey:
|
case "connected-different-key":
|
||||||
valid = true;
|
valid = true;
|
||||||
validationMessage = Constants.ensState[ensResult]
|
validationMessage = Constants.ensState[ensResult]
|
||||||
break;
|
break;
|
||||||
case Constants.ens_taken:
|
case "taken":
|
||||||
validationMessage = !isStatus ? Constants.ensState['taken_custom'] : Constants.ensState['taken'];
|
validationMessage = Constants.ensState[!isStatus ? 'taken-custom' : 'taken']
|
||||||
break;
|
break;
|
||||||
case Constants.already_connected:
|
case "already-connected":
|
||||||
validationMessage = Constants.ensState[ensResult]
|
validationMessage = Constants.ensState[ensResult]
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -144,7 +144,7 @@ QtObject {
|
||||||
//% "Continuing will connect this username with your chat key."
|
//% "Continuing will connect this username with your chat key."
|
||||||
"owned": qsTrId("ens-username-owned-continue"),
|
"owned": qsTrId("ens-username-owned-continue"),
|
||||||
//% "✓ Username available!"
|
//% "✓ Username available!"
|
||||||
"availabe": qsTrId("ens-username-available"),
|
"available": qsTrId("ens-username-available"),
|
||||||
//% "Username is already connected with your chat key and can be used inside Status."
|
//% "Username is already connected with your chat key and can be used inside Status."
|
||||||
"already-connected": qsTrId("ens-username-already-added"),
|
"already-connected": qsTrId("ens-username-already-added"),
|
||||||
//% "This user name is owned by you and connected with your chat key. Continue to set `Show my ENS username in chats`."
|
//% "This user name is owned by you and connected with your chat key. Continue to set `Show my ENS username in chats`."
|
||||||
|
|
Loading…
Reference in New Issue