mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +00:00
Update lobby name correctly when editing network
This commit is contained in:
parent
c42fc55c6f
commit
86ddce974d
1 changed files with 3 additions and 2 deletions
|
@ -49,9 +49,10 @@ socket.on("network:info", function(data) {
|
|||
const uuid = $(this).find("input[name=uuid]").val();
|
||||
const newName = $(this).find("#connect\\:name").val();
|
||||
|
||||
const network = vueApp.networks.find((n) => n.uuid === uuid);
|
||||
network.name = network.channels[0].name = newName;
|
||||
|
||||
sidebar.find(`.network[data-uuid="${uuid}"] .chan.lobby .name`)
|
||||
.attr("title", newName)
|
||||
.text(newName)
|
||||
.click();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue