ui: cleaning unassigned slots
This commit is contained in:
parent
8603439716
commit
9f4852bd38
2 changed files with 1 additions and 2 deletions
|
|
@ -297,6 +297,7 @@ export default class DOMManager extends ListWalker<Message> {
|
||||||
if (vChild.node.parentNode === (host as any).node) {
|
if (vChild.node.parentNode === (host as any).node) {
|
||||||
host.node.removeChild(vChild.node);
|
host.node.removeChild(vChild.node);
|
||||||
}
|
}
|
||||||
|
(host as any).notMontedChildren?.delete(vChild);
|
||||||
slotElem.addAssigned(vChild);
|
slotElem.addAssigned(vChild);
|
||||||
(vChild as any).assignedSlot = slotElem;
|
(vChild as any).assignedSlot = slotElem;
|
||||||
this.nodeSlots.set(msg.id, { slotID: msg.slotID, host });
|
this.nodeSlots.set(msg.id, { slotID: msg.slotID, host });
|
||||||
|
|
|
||||||
|
|
@ -595,7 +595,6 @@ export default abstract class Observer {
|
||||||
}
|
}
|
||||||
if (slot) {
|
if (slot) {
|
||||||
const slotID = this.app.nodes.getID(slot)
|
const slotID = this.app.nodes.getID(slot)
|
||||||
console.log('Openreplay: slotID', slotID, 'for node', id, node, 'slot', slot)
|
|
||||||
if (slotID !== undefined) {
|
if (slotID !== undefined) {
|
||||||
this.slotMap.set(id, slotID)
|
this.slotMap.set(id, slotID)
|
||||||
this.app.send(SetNodeSlot(id, slotID))
|
this.app.send(SetNodeSlot(id, slotID))
|
||||||
|
|
@ -605,7 +604,6 @@ export default abstract class Observer {
|
||||||
}
|
}
|
||||||
if (recentsType === RecentsType.Removed && parentID !== undefined) {
|
if (recentsType === RecentsType.Removed && parentID !== undefined) {
|
||||||
this.app.send(MoveNode(id, parentID, index))
|
this.app.send(MoveNode(id, parentID, index))
|
||||||
console.log('RM Openreplay', id, node, 'slot', slot)
|
|
||||||
if (slot) {
|
if (slot) {
|
||||||
const slotID = this.app.nodes.getID(slot)
|
const slotID = this.app.nodes.getID(slot)
|
||||||
if (slotID !== undefined && this.slotMap.get(id) !== slotID) {
|
if (slotID !== undefined && this.slotMap.get(id) !== slotID) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue