Skip to content

Commit

Permalink
feat(client): added ability to pick a host by clicking on the host's …
Browse files Browse the repository at this point in the history
…name in the lower right corner
  • Loading branch information
will-moss committed Apr 1, 2024
1 parent a8e38ab commit d562266
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions app/client/assets/css/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ html {
&.for-connected,
&.for-communication-target {
color: var(--color-terminal-accent-alternative);
button {
color: var(--color-terminal-accent-alternative);
&:hover {
color: var(--color-terminal-accent);
}
}
}
&.for-communication-target {
margin-right: 8px;
Expand Down
6 changes: 2 additions & 4 deletions app/client/assets/js/isaiah.js
Original file line number Diff line number Diff line change
Expand Up @@ -1043,11 +1043,9 @@

let fullIndicator = _state.communication.currentAgent || 'Master';
if (_state.communication.currentHost)
fullIndicator = `${fullIndicator} (${_state.communication.currentHost})`;
fullIndicator = `${fullIndicator} (<button data-action="host">${_state.communication.currentHost}</button>)`;

hgetConnectionIndicator(
'communication-target'
).textContent = fullIndicator;
hgetConnectionIndicator('communication-target').innerHTML = fullIndicator;
}

// 10. Reset mobile controls' visibility
Expand Down

0 comments on commit d562266

Please sign in to comment.