This commit is contained in:
parent
08a3c162a2
commit
7718c0a0b8
|
|
@ -454,30 +454,4 @@ ui:bind "view.toggle-marked-items" "M" {
|
||||||
mark all
|
mark all
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
proc _prep_officeCount {
|
|
||||||
openedOffices = 0
|
|
||||||
closedOffices = 0
|
|
||||||
|
|
||||||
async:query 'officeOpened=$v' [v:(av:true)] { |rs|
|
|
||||||
openedOffices = len $rs
|
|
||||||
async:query 'officeOpened=$u' [u:(av:false)] { |rs|
|
|
||||||
closedOffices = len $rs
|
|
||||||
|
|
||||||
ui:set-item-annotator { |rs item path|
|
|
||||||
if (eq $path.(-1) "officeOpened") {
|
|
||||||
if $item.officeOpened {
|
|
||||||
"Count = ${openedOffices}"
|
|
||||||
} else {
|
|
||||||
"Count = ${closedOffices}"
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} -table business-addresses
|
|
||||||
} -table business-addresses
|
|
||||||
}
|
|
||||||
|
|
||||||
_prep_officeCount
|
|
||||||
`
|
`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue