Format files

This commit is contained in:
Andras Schmelczer 2025-01-05 15:35:51 +00:00
parent 02486d671e
commit 438caa96a6
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
19 changed files with 557 additions and 585 deletions

View file

@ -34,7 +34,7 @@ export class StatusBar {
private updateStatus(): void {
this.statusBarItem.empty();
const container = this.statusBarItem.createDiv({
cls: ["sync-status"],
cls: ["sync-status"]
});
let hasShownMessage = false;
@ -47,14 +47,14 @@ export class StatusBar {
if ((this.lastHistoryStats?.success ?? 0) > 0) {
hasShownMessage = true;
container.createSpan({
text: `${this.lastHistoryStats?.success ?? 0}`,
text: `${this.lastHistoryStats?.success ?? 0}`
});
}
if ((this.lastHistoryStats?.error ?? 0) > 0) {
hasShownMessage = true;
container.createSpan({
text: `${this.lastHistoryStats?.error ?? 0}`,
text: `${this.lastHistoryStats?.error ?? 0}`
});
}
@ -64,7 +64,7 @@ export class StatusBar {
} else {
const button = container.createEl("button", {
text: "VaultLink is disabled, click to configure",
cls: "initialize-button",
cls: "initialize-button"
});
button.onclick = (): void => {
this.plugin.openSettings();