mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 00:35:50 +01:00
attachment actions
This commit is contained in:
@@ -3,6 +3,7 @@ import AttachmentActionsWidget from "./buttons/attachments_actions.js";
|
||||
import BasicWidget from "./basic_widget.js";
|
||||
import server from "../services/server.js";
|
||||
import options from "../services/options.js";
|
||||
import imageService from "../services/image.js";
|
||||
|
||||
const TPL = `
|
||||
<div class="attachment-detail">
|
||||
@@ -148,6 +149,10 @@ export default class AttachmentDetailWidget extends BasicWidget {
|
||||
}
|
||||
}
|
||||
|
||||
copyAttachmentReferenceToClipboard() {
|
||||
imageService.copyImageReferenceToClipboard(this.$wrapper.find('.attachment-content'));
|
||||
}
|
||||
|
||||
async entitiesReloadedEvent({loadResults}) {
|
||||
const attachmentChange = loadResults.getAttachments().find(att => att.attachmentId === this.attachment.attachmentId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user