updated demo document with icon classes

This commit is contained in:
zadam 2019-11-16 09:57:19 +01:00
parent e00ab5dbf9
commit c5e040c4a4
3 changed files with 6 additions and 0 deletions

Binary file not shown.

View file

@ -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 },

View file

@ -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();