add topNode option

This commit is contained in:
Philipp Kühn
2020-03-06 00:15:36 +01:00
parent b21bed1694
commit cb6a723d57
4 changed files with 14 additions and 2 deletions

View File

@@ -14,6 +14,14 @@ export default class ExtensionManager {
})
}
get topNode() {
const topNode = this.extensions.find(extension => extension.topNode)
if (topNode) {
return topNode.name
}
}
get nodes(): any {
return collect(this.extensions)
.where('type', 'node')