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:
Pascal Precht 2021-09-24 11:52:10 +02:00 committed by Iuri Matias
parent 03f088461a
commit 2e68be238c
1 changed files with 2 additions and 2 deletions

View File

@ -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"))
}]
}