Fix CR attachment box (#4430)

This commit is contained in:
windingwind 2024-07-25 23:35:50 +08:00 committed by Dan Stillman
parent 15fa86410d
commit 99a2b83cb6
2 changed files with 2 additions and 2 deletions

View file

@ -317,6 +317,7 @@
let selectButton = this._id('select-button');
let fileExists = this._item.isFileAttachment() && await this._item.fileExists();
let isMerge = ["merge", "mergeedit", "filemerge"].includes(this.mode);
let isImportedURL = this.item.attachmentLinkMode == Zotero.Attachments.LINK_MODE_IMPORTED_URL;
let isLinkedURL = this.item.attachmentLinkMode == Zotero.Attachments.LINK_MODE_LINKED_URL;
@ -392,7 +393,7 @@
pagesRow.hidden = true;
}
if (this.displayDateModified && fileExists && !this._item.isWebAttachment()) {
if (this.displayDateModified && (fileExists || isMerge) && !this._item.isWebAttachment()) {
// Conflict resolution uses a modal window, so promises won't work, but
// the sync process passes in the file mod time as dateModified
if (this.synchronous) {

View file

@ -142,7 +142,6 @@
this._mergePane.libraryID = this.libraryID;
this._leftPane.data = this._data.left;
this._rightPane.data = this._data.right;
this._mergePane.data = this._data.merge;
if (this._data.selected == 'left') {
this.choosePane(this._leftPane);