Skip to content

Commit f3a3c9f

Browse files
author
Marvin Kuhn
committed
fix: hide button if vocabulary is auto created
1 parent 6d6754b commit f3a3c9f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Classes/Controller/ModuleController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ public function indexAction(NodeInterface $root = null)
114114
foreach ($vocabularyNodes as $vocabulary) {
115115
$vocabularies[] = [
116116
'node' => $vocabulary,
117+
'isAutoCreated' => $vocabulary->isAutocreated(),
117118
'defaultNode' => $this->getNodeInDefaultDimensions($vocabulary)
118119
];
119120
}

Resources/Private/Templates/Module/Index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h3>
4343
<i class="fas fa-pencil-alt"></i>
4444
</f:link.action>
4545

46-
<f:if condition="{vocabulary.autoCreated = false}" >
46+
<f:if condition="!{vocabulary.isAutoCreated}" >
4747
<button class="neos-button neos-button-danger" title="{f:translate(id: 'generic.delete')}" data-toggle="modal" href="#deleteVocabulary_{vocabulary.node.identifier}" data-neos-toggle="tooltip">
4848
<i class="fas fa-trash-alt icon-white"></i>
4949
</button>

0 commit comments

Comments
 (0)