From 2e68be238c32cb964e2d0378cced37e824dfed36 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Fri, 24 Sep 2021 11:52:10 +0200 Subject: [PATCH] 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. --- .../Chat/CommunityComponents/CreateChannelPopup.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CreateChannelPopup.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CreateChannelPopup.qml index 83e282e209..0ea49b4ee3 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CreateChannelPopup.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CreateChannelPopup.qml @@ -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")) }] }