mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01: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;
 | 
					      return this.ownerId;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    getUtcDateScheduledForErasureSince() {
 | 
				
			||||||
 | 
					      return this.utcDateScheduledForErasureSince;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    async getBlob() {
 | 
					    async getBlob() {
 | 
				
			||||||
        return await this.froca.getBlob("attachments", this.attachmentId);
 | 
					        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 $deletionWarning = this.$wrapper.find(".attachment-deletion-warning");
 | 
				
			||||||
        const { utcDateScheduledForErasureSince } = this.attachment;
 | 
					        const utcDateScheduledForErasureSince = this.attachment.getUtcDateScheduledForErasureSince();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (utcDateScheduledForErasureSince) {
 | 
					        if (utcDateScheduledForErasureSince) {
 | 
				
			||||||
            this.$wrapper.addClass("scheduled-for-deletion");
 | 
					            this.$wrapper.addClass("scheduled-for-deletion");
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user