Skip to content
Snippets Groups Projects
Commit c743c5c3 authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'anu-fixes' into 'pregmod-master'

Locate Slave tool: show number of matching slaves

See merge request !11094
parents 6e4b4695 547ead75
No related branches found
No related tags found
1 merge request!11094Locate Slave tool: show number of matching slaves
Pipeline #52485 passed
...@@ -71,9 +71,8 @@ App.UI.findSlave = function() { ...@@ -71,9 +71,8 @@ App.UI.findSlave = function() {
* @param {DocumentFragment} frag * @param {DocumentFragment} frag
*/ */
function _appendResultList(ids, frag) { function _appendResultList(ids, frag) {
if (ids.length === 0) { App.UI.DOM.appendNewElement("p", frag, `${ids.length} matching slave${ids.length === 1 ? `` : `s`}.`);
App.UI.DOM.appendNewElement("p", frag, "No matching slaves."); if (ids.length !== 0) {
} else {
frag.appendChild(App.UI.SlaveList.render(ids, [], App.UI.SlaveList.SlaveInteract.stdInteract)); 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