Show WebSocket status on UI
This commit is contained in:
parent
a249919061
commit
1a05e184a7
1 changed files with 71 additions and 28 deletions
|
|
@ -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();
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue