This commit is contained in:
Andras Schmelczer 2025-03-27 21:28:29 +00:00
parent 59d9edb4b1
commit 5fb7d71395
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
3 changed files with 6 additions and 4 deletions

View file

@ -128,7 +128,7 @@ export default class VaultLinkPlugin extends Plugin {
}
}
private registerEditorEvents() {
private registerEditorEvents(): void {
[
this.app.workspace.on(
"editor-change",
@ -136,7 +136,7 @@ export default class VaultLinkPlugin extends Plugin {
_editor: Editor,
info: MarkdownView | MarkdownFileInfo
) => {
const file = info.file;
const { file } = info;
if (file) {
await this.client.syncLocallyUpdatedFile({
relativePath: file.path

View file

@ -86,7 +86,9 @@ export class LogsView extends ItemView {
dropdown.value = this.minLogLevel;
dropdown.addEventListener("change", () => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion
this.minLogLevel = dropdown.value as LogLevel;
this.logsContainer?.empty();
this.logLineToElement.clear();
this.updateView();

View file

@ -2,11 +2,11 @@ import "./settings-tab.scss";
import type { App } from "obsidian";
import { Notice, PluginSettingTab, Setting } from "obsidian";
import VaultLinkPlugin from "src/vault-link-plugin";
import type VaultLinkPlugin from "src/vault-link-plugin";
import type { SyncClient, SyncSettings } from "sync-client";
import { HistoryView } from "../history/history-view";
import { LogsView } from "../logs/logs-view";
import { StatusDescription } from "../status-description/status-description";
import type { StatusDescription } from "../status-description/status-description";
export class SyncSettingsTab extends PluginSettingTab {
private editedServerUri: string;