diff --git a/modules/agent/views/scripts/skills/index.phtml b/modules/agent/views/scripts/skills/index.phtml index 1e3fc3a..60ce311 100644 --- a/modules/agent/views/scripts/skills/index.phtml +++ b/modules/agent/views/scripts/skills/index.phtml @@ -100,10 +100,10 @@ document.addEventListener('DOMContentLoaded', function () { } }, { data: 'installed', className: 'text-nowrap', render: function (t, type, row) { if (type !== 'display') { return t ? 1 : 0; } - if (!row.installed) { return 'Available'; } + if (!row.installed) { return 'Available'; } return row.active - ? 'On' - : 'Installed'; + ? 'On' + : 'Installed'; } }, { data: null, orderable: false, searchable: false, className: 'text-end text-nowrap', render: function (t, type, row) { var h = ''; @@ -114,9 +114,9 @@ document.addEventListener('DOMContentLoaded', function () { + ' data-entry="' + esc(JSON.stringify({ source: row.source, sourceLabel: row.sourceLabel, name: row.name, repo: row.repo, ref: row.ref, path: row.path, url: row.url })) + '">' + ' '; if (!row.installed) { - h += ''; + + 'Install'; } else { h += row.active ? ' '