Skip to content
Snippets Groups Projects
Commit 547ead75 authored by Anu's avatar Anu
Browse files

Locate tool always shows number of matching slaves

parent 6e4b4695
No related branches found
No related tags found
1 merge request!11094Locate Slave tool: show number of matching slaves
......@@ -71,9 +71,8 @@ App.UI.findSlave = function() {
* @param {DocumentFragment} frag
*/
function _appendResultList(ids, frag) {
if (ids.length === 0) {
App.UI.DOM.appendNewElement("p", frag, "No matching slaves.");
} else {
App.UI.DOM.appendNewElement("p", frag, `${ids.length} matching slave${ids.length === 1 ? `` : `s`}.`);
if (ids.length !== 0) {
frag.appendChild(App.UI.SlaveList.render(ids, [], App.UI.SlaveList.SlaveInteract.stdInteract));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment