diff --git a/app/client/assets/js/isaiah.js b/app/client/assets/js/isaiah.js index bb081ff..6b2c268 100644 --- a/app/client/assets/js/isaiah.js +++ b/app/client/assets/js/isaiah.js @@ -516,9 +516,10 @@ /** * @param {Menu} menu + * @param {Row} row * @returns {string} */ - const renderMenu = (menu) => { + const renderMenu = (menu, row = null) => { // Cell padding according to the longest key let maxKeyWidth = -1; @@ -527,19 +528,20 @@ maxKeyWidth = Math.max(maxKeyWidth, action.Key.length); else maxKeyWidth = 0; + let title = { + menu: 'Menu', + bulk: 'Bulk actions', + theme: 'Theme', + agent: 'Agent', + host: 'Host', + }[menu.key]; + if (menu.key === 'menu' && row) title += ` (${row.Name})`; + return `