Fix frontend: remove Wails script tags, fix API mismatches, fix status bar
- Remove explicit /wails/ipc.js and /wails/runtime.js script tags from index.html (Wails v2 auto-injects its runtime, explicit tags cause 404s that block window.runtime and window.go from loading) - Fix SecretStoreStatus() → IsSecretStoreInitialised() + IsSecretStoreUnlocked() - Fix Connect() → ConnectSession() - Fix QuickConnect(proto, host, port) → ConnectQuick(profileObject) - Fix ImportProfilesDialog()/ExportProfilesDialog() → SelectFile/ExportProfiles/SaveFile - Fix CloseSession() → DisconnectSession() - Fix TestConnection() → show notification (method doesn't exist in backend) - Fix SaveCapture() → SaveSessionCapture() - Fix updateStatusBar() to use existing #status-connection, #status-session-count, and #status-vault spans instead of replacing the entire status bar innerHTML
This commit is contained in:
@@ -198,7 +198,7 @@ export class RawViewer {
|
||||
return `[${ts}] [${dir}] ${e.data}`;
|
||||
});
|
||||
const content = lines.join('\n');
|
||||
await window.go.api.Service.SaveCapture(sessionId, content);
|
||||
await window.go.api.Service.SaveSessionCapture(sessionId, content);
|
||||
this.app.notifications.success('Capture saved');
|
||||
} catch (err) {
|
||||
this.app.notifications.error('Save failed: ' + err);
|
||||
|
||||
Reference in New Issue
Block a user