fix: edit channel modal header

Fixes: #2694.

Display channel name in modal header when editing a channel instead of “New channel”.
This commit is contained in:
Eric Mastro 2021-06-21 10:44:29 +10:00 committed by Iuri Matias
parent fd4e0de3f3
commit 395b10c4c0
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ ModalPopup {
nameInput.text = ""; nameInput.text = "";
if (isEdit) { if (isEdit) {
nameInput.text = channel.name; nameInput.text = channel.name;
title = qsTr("Edit #%1").arg(channel.name);
descriptionTextArea.text = channel.description; descriptionTextArea.text = channel.description;
// TODO: re-enable once private channels are implemented // TODO: re-enable once private channels are implemented
// privateSwitch.checked = channel.private // privateSwitch.checked = channel.private