This commit is contained in:
Andras Schmelczer 2025-01-04 15:16:44 +00:00
commit e14fe4240e
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
2 changed files with 6 additions and 3 deletions

View file

@ -125,7 +125,10 @@ export default class VaultLinkPlugin extends Plugin {
HistoryView.TYPE, HistoryView.TYPE,
(leaf) => new HistoryView(leaf, database, this.history) (leaf) => new HistoryView(leaf, database, this.history)
); );
this.registerView(LogsView.TYPE, (leaf) => new LogsView(this, leaf)); this.registerView(
LogsView.TYPE,
(leaf) => new LogsView(this, database, leaf)
);
this.addRibbonIcon( this.addRibbonIcon(
HistoryView.ICON, HistoryView.ICON,

View file

@ -1,5 +1,5 @@
import type { Database } from "src/database/database"; import type { Database } from "src/database/database";
import type SyncPlugin from "src/plugin"; import type VaultLinkPlugin from "src/vault-link-plugin";
import type { Syncer } from "src/sync-operations/syncer"; import type { Syncer } from "src/sync-operations/syncer";
import type { HistoryStats, SyncHistory } from "src/tracing/sync-history"; import type { HistoryStats, SyncHistory } from "src/tracing/sync-history";
@ -11,7 +11,7 @@ export class StatusBar {
public constructor( public constructor(
private readonly database: Database, private readonly database: Database,
private readonly plugin: SyncPlugin, private readonly plugin: VaultLinkPlugin,
history: SyncHistory, history: SyncHistory,
syncer: Syncer syncer: Syncer
) { ) {