Show WebSocket status on UI

This commit is contained in:
Andras Schmelczer 2025-03-29 09:42:24 +00:00
commit 1a05e184a7
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -222,7 +222,7 @@ export class SyncSettingsTab extends PluginSettingTab {
.addButton((button) =>
button.setButtonText("Test connection").onClick(async () => {
new Notice(
(await this.syncClient.checkConnection()).message
(await this.syncClient.checkConnection()).serverMessage
);
await this.statusDescription.updateConnectionState();
})