MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / saveHuginnConfig

Function saveHuginnConfig

web/scripts/ragnar_modern.js:18099–18130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18097 if (isHidden) {
18098 hidden.classList.remove('hidden');
18099 if (text) text.textContent = 'Show less';
18100 if (arrow) arrow.style.transform = 'rotate(180deg)';
18101 } else {
18102 hidden.classList.add('hidden');
18103 const count = hidden.querySelectorAll('tr, .bg-slate-800').length;
18104 if (text) text.textContent = `Show ${count} more`;
18105 if (arrow) arrow.style.transform = 'rotate(0deg)';
18106 }
18107 });
18108}
18109
18110function updatePwnDiscoveredCard(status, visuals = null) {
18111 if (!status || typeof status !== 'object') return;
18112 const container = document.getElementById('pwn-discovered-card');
18113 if (!container) return;
18114
18115 if (!arePwnFeaturesEnabled()) {
18116 container.classList.add('hidden');
18117 return;
18118 }
18119
18120 const shouldShow = Boolean(status.installing || status.installed);
18121 if (!shouldShow) {
18122 container.classList.add('hidden');
18123 return;
18124 }
18125
18126 container.classList.remove('hidden');
18127 const resolvedVisuals = visuals || getPwnStateVisuals(status);
18128
18129 const badge = document.getElementById('pwn-card-badge');
18130 if (badge) {
18131 const state = (status.state || '').toLowerCase();
18132 if (state.includes('error') || state.includes('fail')) {
18133 badge.classList.add('hidden');

Callers

nothing calls this directly

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected