diff --git a/src/interaction/slaveInteract.js b/src/interaction/slaveInteract.js index 44f3f4478e4aa6eaf85edde5625d24ad1ca60adf..269625c1becfbd619a9447aebc0aca2a501659c9 100644 --- a/src/interaction/slaveInteract.js +++ b/src/interaction/slaveInteract.js @@ -67,39 +67,49 @@ App.UI.SlaveInteract.mainPage = function(slave) { const buttons = [ { - title: "Description", id: "description", + title: "Description", + id: "description", get node() { return App.UI.SlaveInteract.description(slave); } }, { - title: "Modify", id: "modify", + title: "Modify", + id: "modify", get node() { return App.UI.SlaveInteract.modify(slave); } }, { - title: "Work", id: "work", + title: "Work", + id: "work", get node() { return App.UI.SlaveInteract.work(slave); } }, { - title: "Appearance", id: "appearance", + title: "Appearance", + id: "appearance", get node() { return App.UI.SlaveInteract.wardrobe(slave); } }, { - title: "Physical Regimen", id: "physical-regimen", + title: "Physical Regimen", + id: "physical-regimen", get node() { return App.UI.SlaveInteract.physicalRegimen(slave); } }, { - title: "Rules", id: "rules", + title: "Rules", + id: "rules", get node() { return App.UI.SlaveInteract.rules(slave); } }, { - title: "Financial", id: "financial", + title: "Financial", + id: "financial", get node() { return App.UI.SlaveInteract.financial(slave); } }, { - title: "Customize", id: "customize", + title: "Customize", + id: "customize", get node() { return App.UI.SlaveInteract.custom(slave); } }, { - title: "Family", id: "family-tab", onClick: () => renderFamilyTree(V.slaves, slave.ID), + title: "Family", + id: "family-tab", + onClick: () => renderFamilyTree(V.slaves, slave.ID), get node() { return App.UI.SlaveInteract.family(); } } ];