summaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/app.js6
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/platform.js4
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/app.js b/packages/meshbay-hub/src/meshbay_hub/static/app.js
index 4b5ccd3..595674d 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/app.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/app.js
@@ -1149,7 +1149,7 @@ function CreateGroupFormSimple({ token, onCreated }) {
// ── Create Group Wizard (Electron-only) ─────────────────────────────────────
-function CreateGroupWizard({ token, onCreated }) {
+function CreateGroupWizard({ token, username, onCreated }) {
const [step, setStep] = useState(0); // 0=node check, 1=details, 2=setup, 3=done
const [nodeStatus, setNodeStatus] = useState(null); // null=loading, object=result
const [nodeStarting, setNodeStarting] = useState(false);
@@ -1201,7 +1201,7 @@ function CreateGroupWizard({ token, onCreated }) {
setNodeStarting(true);
setError('');
try {
- const result = await platform.node.start();
+ const result = await platform.node.start({ hubUrl: HUB, username });
await linkNodeKey(result.pk_node_ed25519);
setNodeStatus({ detected: true, ...result });
setNodeStarting(false);
@@ -6441,7 +6441,7 @@ function App() {
page = html`<${ExplorePage} token=${user.token}
myGroupIds=${groups.map(g => g.id)} />`;
} else if (route === '/create-group') {
- page = html`<${CreateGroupPage} token=${user.token}
+ page = html`<${CreateGroupPage} token=${user.token} username=${user.username}
onCreated=${() => {
hubFetch('/v1/groups/mine', { token: user.token })
.then(data => setGroups(data.groups || []))
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/platform.js b/packages/meshbay-hub/src/meshbay_hub/static/platform.js
index eeffd49..a8e17bf 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/platform.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/platform.js
@@ -227,9 +227,9 @@ export const node = {
async installed() {
return bridge && bridge.node ? bridge.node.installed() : { installed: false };
},
- async start() {
+ async start(opts) {
if (!bridge || !bridge.node) throw new Error('Node bridge not available');
- return bridge.node.start();
+ return bridge.node.start(opts);
},
async call(method, path, body) {
if (!bridge || !bridge.node) throw new Error('Node bridge not available');