fix: fix edit community channel missing store

Fixes #4000
This commit is contained in:
Jonathan Rainville 2021-11-03 09:25:56 -04:00 committed by Iuri Matias
parent a5954d3bf3
commit 816f737d55
2 changed files with 3 additions and 2 deletions

View File

@ -84,7 +84,7 @@ StatusModal {
}
validators: [StatusMinLengthValidator {
minLength: 1
errorMessage: Utils.getErrorMessage(errors, qsTr("channel name"))
errorMessage: Utils.getErrorMessage(nameInput.errors, qsTr("channel name"))
}]
}
@ -103,7 +103,7 @@ StatusModal {
input.implicitHeight: 88
validators: [StatusMinLengthValidator {
minLength: 1
errorMessage: Utils.getErrorMessage(errors, qsTr("channel description"))
errorMessage: Utils.getErrorMessage(descriptionTextArea.errors, qsTr("channel description"))
}]
}

View File

@ -104,6 +104,7 @@ StatusPopupMenu {
enabled: communityActive &&
root.store.chatsModelInst.communities.activeCommunity.admin
onTriggered: openPopup(editChannelPopup, {
store: root.store,
communityId: root.store.chatsModelInst.communities.activeCommunity.id,
channel: chatItem
})