mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 12:09:02 +01:00
fix(client): pressing "Download" on PDF preview also opens note
This commit is contained in:
parent
c5dbaccea8
commit
a5171ce093
@ -256,7 +256,10 @@ function renderFile(entity: FNote | FAttachment, type: string, $renderedContent:
|
||||
</button>
|
||||
`);
|
||||
|
||||
$downloadButton.on("click", () => openService.downloadFileNote(entity.noteId));
|
||||
$downloadButton.on("click", (e) => {
|
||||
e.stopPropagation();
|
||||
openService.downloadFileNote(entity.noteId)
|
||||
});
|
||||
$openButton.on("click", async (e) => {
|
||||
const iconEl = $openButton.find("> .bx");
|
||||
iconEl.removeClass("bx bx-link-external");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user