mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-07 12:17:38 +00:00
fix(Communities): make channel popup validation work again
This was a reference error as there's no `errors` object on `StatusValidator`. When accessing errors exposed by `StatusInput` we need to dot into the component reference.
This commit is contained in:
parent
03f088461a
commit
2e68be238c
@ -82,7 +82,7 @@ StatusModal {
|
||||
}
|
||||
validators: [StatusMinLengthValidator {
|
||||
minLength: 1
|
||||
errorMessage: Utils.getErrorMessage(errors, qsTr("channel name"))
|
||||
errorMessage: Utils.getErrorMessage(nameInput.errors, qsTr("channel name"))
|
||||
}]
|
||||
}
|
||||
|
||||
@ -101,7 +101,7 @@ StatusModal {
|
||||
input.implicitHeight: 88
|
||||
validators: [StatusMinLengthValidator {
|
||||
minLength: 1
|
||||
errorMessage: Utils.getErrorMessage(errors, qsTr("channel description"))
|
||||
errorMessage: Utils.getErrorMessage(descriptionTextArea.errors, qsTr("channel description"))
|
||||
}]
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user