mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-02 09:46:38 +00:00
fix(Communities): fix channel popup position and field hydration
There are two regressions introduced in 080767c338
where
the `CreateChannelPopup` isn't properly centered when triggered in edit mode,
and that the channel name field isn't hydrated with channel data.
This commits fixes both bugs.
This commit is contained in:
parent
e832666123
commit
bb9beef837
@ -37,6 +37,7 @@ StatusModal {
|
|||||||
contentComponent.channelName.text = ""
|
contentComponent.channelName.text = ""
|
||||||
if (isEdit) {
|
if (isEdit) {
|
||||||
header.title = qsTr("Edit #%1").arg(channel.name);
|
header.title = qsTr("Edit #%1").arg(channel.name);
|
||||||
|
contentComponent.channelName.text = channel.name
|
||||||
}
|
}
|
||||||
contentComponent.channelName.forceActiveFocus(Qt.MouseFocusReason)
|
contentComponent.channelName.forceActiveFocus(Qt.MouseFocusReason)
|
||||||
}
|
}
|
||||||
|
@ -520,6 +520,7 @@ StatusAppLayout {
|
|||||||
Component {
|
Component {
|
||||||
id: editChannelPopup
|
id: editChannelPopup
|
||||||
CreateChannelPopup {
|
CreateChannelPopup {
|
||||||
|
anchors.centerIn: parent
|
||||||
isEdit: true
|
isEdit: true
|
||||||
pinnedMessagesPopupComponent: chatLayoutContainer.chatColumn.pinnedMessagesPopupComponent
|
pinnedMessagesPopupComponent: chatLayoutContainer.chatColumn.pinnedMessagesPopupComponent
|
||||||
onClosed: {
|
onClosed: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user