mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
Make filters apply to newly added items too.
This commit is contained in:
parent
10fca31577
commit
1fed3b9da5
2 changed files with 6 additions and 2 deletions
|
@ -452,7 +452,9 @@ module.exports = function DeviceListDetailsDirective(
|
|||
|
||||
// Triggers when the tracker sees a device for the first time.
|
||||
function addListener(device) {
|
||||
insertRow(createRow(device), device)
|
||||
var row = createRow(device)
|
||||
filterRow(row, device)
|
||||
insertRow(row, device)
|
||||
}
|
||||
|
||||
// Triggers when the tracker notices that a device changed.
|
||||
|
|
|
@ -480,7 +480,9 @@ module.exports = function DeviceListDetailsDirective(
|
|||
|
||||
// Triggers when the tracker sees a device for the first time.
|
||||
function addListener(device) {
|
||||
insertItem(createItem(device), device)
|
||||
var item = createItem(device)
|
||||
filterItem(item, device)
|
||||
insertItem(item, device)
|
||||
}
|
||||
|
||||
// Triggers when the tracker notices that a device changed.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue