diff --git a/src/js/slaveListing.js b/src/js/slaveListing.js index c1172b62ab8ab6a0ba661320d8bcd29aa35e7357..971ffb8a626bc0121f1dda4cce95a6786e9ab37f 100644 --- a/src/js/slaveListing.js +++ b/src/js/slaveListing.js @@ -156,11 +156,6 @@ App.UI.SlaveList.render = function() { if ((slave.assignment === Job.REST) && (slave.health.condition >= -20)) { assignment.className = "freeAssignment"; assignment.innerText = slave.assignment; - } else if ((slave.assignment === Job.CONFINEMENT) && ((slave.devotion > 20) || ((slave.trust < -20) && (slave.devotion >= -20)) || ((slave.trust < -50) && (slave.devotion >= -50)))) { - assignment.innerText = slave.assignment; - if (slave.sentence > 0) { - assignment.innerText += ` (${slave.sentence} weeks)`; - } } else if (slave.choosesOwnAssignment === 1) { assignment.innerText = `choose ${getPronouns(slave).possessive} own job`; } else { @@ -552,10 +547,13 @@ App.UI.SlaveList.sortingLinks = function(passage) { return {key: so, name: capFirstChar(so)}; }); - div.append(App.UI.DOM.makeSelect(orderMap, V.sortSlavesBy, val => { - V.sortSlavesBy = val; - App.UI.reload(); - })); + div.append( + span, + App.UI.DOM.makeSelect(orderMap, V.sortSlavesBy, val => { + V.sortSlavesBy = val; + App.UI.reload(); + }), + ); span = App.UI.DOM.makeElement("span", " Sort direction: "); order = ["descending", "ascending"];