mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-09 05:18:01 +08:00
Fix restore version in file preview [SCI-11253]
This commit is contained in:
parent
2d70773cda
commit
feface9141
1 changed files with 3 additions and 3 deletions
|
@ -131,11 +131,11 @@ export default {
|
||||||
document.getElementById('editImageButton').click();
|
document.getElementById('editImageButton').click();
|
||||||
},
|
},
|
||||||
refreshPreview() {
|
refreshPreview() {
|
||||||
const imageElement = document.querySelector('.file-preview-container .asset-image');
|
const filePreview = document.querySelector('.file-preview-container');
|
||||||
|
|
||||||
if (!imageElement) return;
|
if (!filePreview) return;
|
||||||
|
|
||||||
$('#filePreviewModal').modal('hide');
|
window.location.reload();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue