Add history view
This commit is contained in:
parent
5dd6a655cc
commit
d77162ddf1
1 changed files with 129 additions and 67 deletions
|
|
@ -6,9 +6,9 @@ export class StatusBar {
|
|||
|
||||
public constructor(plugin: Plugin, history: SyncHistory) {
|
||||
this.statusBarItem = plugin.addStatusBarItem();
|
||||
history.addSyncHistoryStatsChangeListener((status) =>
|
||||
{ this.updateStatus(status); }
|
||||
);
|
||||
history.addSyncHistoryUpdateListener((status) => {
|
||||
this.updateStatus(status);
|
||||
});
|
||||
}
|
||||
|
||||
private updateStatus({ success, error }: HistoryStats): void {
|
||||
|
|
|
|||
Loading…
Reference in a new issue