chore(ts/Fattachment): add getUtcDateScheduledForErasureSince, since UtcDateScheduledForErasureSince is private

This commit is contained in:
Panagiotis Papadopoulos 2025-02-22 19:11:05 +01:00
parent 1e7dee51fc
commit 99e520cbbc
2 changed files with 5 additions and 1 deletions

View File

@ -61,6 +61,10 @@ class FAttachment {
return this.ownerId;
}
getUtcDateScheduledForErasureSince() {
return this.utcDateScheduledForErasureSince;
}
async getBlob() {
return await this.froca.getBlob("attachments", this.attachmentId);
}

View File

@ -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");