mirror of
https://github.com/zadam/trilium.git
synced 2025-01-10 09:09:30 +08:00
updated demo document with icon classes
This commit is contained in:
parent
e00ab5dbf9
commit
c5e040c4a4
3 changed files with 6 additions and 0 deletions
BIN
db/demo.tar
BIN
db/demo.tar
Binary file not shown.
|
@ -19,6 +19,8 @@ const BUILTIN_ATTRIBUTES = [
|
|||
{ type: 'label', name: 'appTheme' },
|
||||
{ type: 'label', name: 'hidePromotedAttributes' },
|
||||
{ type: 'label', name: 'readOnly' },
|
||||
{ type: 'label', name: 'cssClass' },
|
||||
{ type: 'label', name: 'iconClass' },
|
||||
{ type: 'label', name: 'run', isDangerous: true },
|
||||
{ type: 'label', name: 'customRequestHandler', isDangerous: true },
|
||||
{ type: 'label', name: 'customResourceProvider', isDangerous: true },
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue