aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/settings-page.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/settings-page.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/settings-page.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/settings-page.js b/packages/meshbay-hub/src/meshbay_hub/static/settings-page.js
index 9a52059..8755556 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/settings-page.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/settings-page.js
@@ -131,8 +131,6 @@ export function SettingsPage({ user, theme, onThemeChange, groups, onPrefsChange
// Changing the hub after the first run. Without this a typo on the first
// screen was permanent: the prompt only appears when no hub is set, so a
// wrong one left editing a JSON file by hand as the only way out.
- const [hubInput, setHubInput] = useState('');
- const [hubError, setHubError] = useState('');
useEffect(() => {
if (!platform.secrets.available) return;
platform.secrets.backend().then(setKeyBackend).catch(() => {});
@@ -287,29 +285,6 @@ export function SettingsPage({ user, theme, onThemeChange, groups, onPrefsChange
<p class="settings-hint">${t('settings.music_keep_screen_on_hint')}</p>
</div>
- ${platform.isNative && html`
- <div class="settings-section">
- <h3 class="settings-heading">${t('settings.hub_heading')}</h3>
- <div class="settings-row">
- <span class="settings-label">${t('settings.hub_current')}</span>
- <span class="settings-value">${platform.hubBase() || '—'}</span>
- </div>
- <p class="settings-hint">${t('settings.hub_hint')}</p>
- <form onSubmit=${async (e) => {
- e.preventDefault();
- setHubError('');
- try {
- await window.meshbay.setHubBase(hubInput.trim());
- } catch (err) { setHubError(platform.bridgeMessage(err)); }
- }} style="display:flex;gap:8px">
- <input type="text" placeholder=${platform.hubBase()}
- value=${hubInput} onInput=${e => setHubInput(e.target.value)} />
- <button class="admin-btn" type="submit">${t('settings.hub_change')}</button>
- </form>
- ${hubError && html`<p class="error-msg">${hubError}</p>`}
- </div>
- `}
-
${keyBackend && html`
<div class="settings-section">
<h3 class="settings-heading">${t('settings.keys_heading')}</h3>