MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / openEditServerDialog

Function openEditServerDialog

app/src/modules/hub.js:440–454  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

438}
439
440export function openEditServerDialog(id) {
441 const servers = getSavedServers();
442 const s = servers.find(x => x.id === id);
443 if (!s) return;
444 hubEditingServerId = id;
445 $('hub-dialog-title').textContent = 'Edit Server';
446 $('hub-dialog-addr').value = s.addr;
447 $('hub-dialog-alias').value = s.alias || '';
448 $('hub-dialog-token').value = s.token || '';
449 $('hub-dialog-token').type = 'password';
450 $('hub-dialog-error').textContent = '';
451 $('hub-dialog-delete').style.display = '';
452 $('hub-add-overlay').classList.add('visible');
453 $('hub-dialog-addr').focus();
454}
455
456function closeServerDialog() {
457 $('hub-add-overlay').classList.remove('visible');

Callers 2

connectFunction · 0.90
renderHubCardsFunction · 0.70

Calls 2

$Function · 0.90
getSavedServersFunction · 0.70

Tested by

no test coverage detected