attributes and children overview working again

This commit is contained in:
zadam
2019-05-04 22:44:25 +02:00
parent b21568806a
commit 7f0c92c56b
10 changed files with 300 additions and 310 deletions

View File

@@ -1,7 +1,5 @@
import libraryLoader from "./library_loader.js";
import noteDetailService from './note_detail.js';
import treeService from './tree.js';
import attributeService from "./attributes.js";
class NoteDetailText {
/**
@@ -69,7 +67,7 @@ class NoteDetailText {
}
async isReadOnly() {
const attributes = await attributeService.getAttributes();
const attributes = await this.ctx.attributes.getAttributes();
return attributes.some(attr => attr.type === 'label' && attr.name === 'readOnly');
}