Skip to content

Commit

Permalink
Merge pull request #4599 from neos/task/migrateFallbackNodeToFusion
Browse files Browse the repository at this point in the history
TASK: Migrate `Neos.Neos:FallbackNode` to fusion
  • Loading branch information
ahaeslich authored Oct 15, 2023
2 parents f316a65 + 59f51d5 commit 95008ba
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
15 changes: 13 additions & 2 deletions Neos.Neos/Resources/Private/Fusion/Prototypes/FallbackNode.fusion
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
prototype(Neos.Neos:FallbackNode) < prototype(Neos.Neos:Content) {
templatePath = 'resource://Neos.Neos/Private/Templates/FusionObjects/FallbackNode.html'
prototype(Neos.Neos:FallbackNode) < prototype(Neos.Neos:ContentComponent) {
@if.onlyRenderInBackend = ${renderingMode.isEdit || renderingMode.isPreview}

renderer = afx`
<div>
<div class="neos-message-header">
<div class="neos-message-icon"><i class="fas fa-exclamation-triangle"></i></div>
<h1>{Translation.id('error.invalidNodeType.title').package('Neos.Neos').locale(Neos.Backend.interfaceLanguage()).translate()}</h1>
</div>
<div class="neos-message-wrapper">
<p class="neos-message-content">{Translation.id('error.invalidNodeType.description').package('Neos.Neos').locale(Neos.Backend.interfaceLanguage()).translate()}</p>
</div>
</div>
`
}

This file was deleted.

0 comments on commit 95008ba

Please sign in to comment.