mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
edit button should get refreshed based on type change
This commit is contained in:
@@ -49,4 +49,10 @@ export default class EditButton extends ButtonWidget {
|
|||||||
this.refresh();
|
this.refresh();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async noteTypeMimeChangedEvent({noteId}) {
|
||||||
|
if (this.isNote(noteId)) {
|
||||||
|
await this.refresh();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user