mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
updated demo document with icon classes
This commit is contained in:
@@ -7,6 +7,10 @@ const dateUtils = require('../services/date_utils');
|
||||
* @param {Note} note
|
||||
*/
|
||||
async function protectNoteRevisions(note) {
|
||||
if (await note.hasLabel('disableVersioning')) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (const revision of await note.getRevisions()) {
|
||||
if (note.isProtected !== revision.isProtected) {
|
||||
const content = await revision.getContent();
|
||||
|
||||
Reference in New Issue
Block a user