mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
chore(ts/Fattachment): add getUtcDateScheduledForErasureSince, since UtcDateScheduledForErasureSince is private
This commit is contained in:
parent
1e7dee51fc
commit
99e520cbbc
@ -61,6 +61,10 @@ class FAttachment {
|
||||
return this.ownerId;
|
||||
}
|
||||
|
||||
getUtcDateScheduledForErasureSince() {
|
||||
return this.utcDateScheduledForErasureSince;
|
||||
}
|
||||
|
||||
async getBlob() {
|
||||
return await this.froca.getBlob("attachments", this.attachmentId);
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ export default class AttachmentDetailWidget extends BasicWidget {
|
||||
}
|
||||
|
||||
const $deletionWarning = this.$wrapper.find(".attachment-deletion-warning");
|
||||
const { utcDateScheduledForErasureSince } = this.attachment;
|
||||
const utcDateScheduledForErasureSince = this.attachment.getUtcDateScheduledForErasureSince();
|
||||
|
||||
if (utcDateScheduledForErasureSince) {
|
||||
this.$wrapper.addClass("scheduled-for-deletion");
|
||||
|
Loading…
x
Reference in New Issue
Block a user