fix(@desktop/community)!: missing error messages
Remove ValidationMode.Always for StatusInputs because by default they are invalid and validate input when dirty Remove condition from errorMessage of BackupSeedStepBase as not needed. Fixes #6825 Requires https://github.com/status-im/StatusQ/pull/858 BREAKING CHANGE: StatusInputs are invalid by default and validate when dirty.
This commit is contained in:
parent
48b7f1c277
commit
ba50c69b76
|
@ -1 +1 @@
|
|||
Subproject commit a22d8252b104b25459d4cb7c387e1ca5cf4fc00a
|
||||
Subproject commit 9f6f9905e988bb98689a4157dc7ad1fd42ea88c2
|
|
@ -30,5 +30,4 @@ StatusInput {
|
|||
qsTr("community description"))
|
||||
}
|
||||
]
|
||||
validationMode: StatusInput.ValidationMode.Always
|
||||
}
|
||||
|
|
|
@ -29,5 +29,4 @@ StatusInput {
|
|||
qsTr("community intro message"))
|
||||
}
|
||||
]
|
||||
validationMode: StatusInput.ValidationMode.Always
|
||||
}
|
||||
|
|
|
@ -22,5 +22,4 @@ StatusInput {
|
|||
qsTr("community name"))
|
||||
}
|
||||
]
|
||||
validationMode: StatusInput.ValidationMode.Always
|
||||
}
|
||||
|
|
|
@ -25,5 +25,4 @@ StatusInput {
|
|||
qsTr("community intro message"))
|
||||
}
|
||||
]
|
||||
validationMode: StatusInput.ValidationMode.Always
|
||||
}
|
||||
|
|
|
@ -131,7 +131,6 @@ StatusDialog {
|
|||
root.emojiPopup.y = root.y + root.header.height + root.topPadding + nameInput.height + Style.current.smallPadding;
|
||||
}
|
||||
}
|
||||
validationMode: StatusInput.ValidationMode.Always
|
||||
validators: [
|
||||
StatusMinLengthValidator {
|
||||
minLength: 1
|
||||
|
@ -214,7 +213,6 @@ StatusDialog {
|
|||
input.multiline: true
|
||||
minimumHeight: 88
|
||||
maximumHeight: 88
|
||||
validationMode: StatusInput.ValidationMode.Always
|
||||
validators: [StatusMinLengthValidator {
|
||||
minLength: 1
|
||||
errorMessage: Utils.getErrorMessage(descriptionTextArea.errors, qsTr("channel description"))
|
||||
|
|
|
@ -137,7 +137,6 @@ StatusModal {
|
|||
minLength: d.minMsgLength
|
||||
errorMessage: Utils.getErrorMessage(messageInput.errors, qsTr("who are you"))
|
||||
}]
|
||||
validationMode: StatusInput.ValidationMode.Always
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,13 +39,12 @@ StatusScrollView {
|
|||
id: inputText
|
||||
visible: (wordRandomNumber > -1)
|
||||
implicitWidth: 448
|
||||
validationMode: StatusInput.ValidationMode.Always
|
||||
label: qsTr("Word #%1").arg(wordRandomNumber + 1)
|
||||
placeholderText: qsTr("Enter word")
|
||||
validators: [
|
||||
StatusValidator {
|
||||
validate: function (t) { return (root.wordAtRandomNumber === inputText.text); }
|
||||
errorMessage: (inputText.text.length) > 0 ? qsTr("Wrong word") : ""
|
||||
errorMessage: qsTr("Wrong word")
|
||||
}
|
||||
]
|
||||
Layout.fillWidth: true
|
||||
|
|
|
@ -63,7 +63,6 @@ StatusModal {
|
|||
minLength: d.minMsgLength
|
||||
errorMessage: Utils.getErrorMessage(messageInput.errors, qsTr("who are you"))
|
||||
}
|
||||
validationMode: StatusInput.ValidationMode.Always
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue