Skip to content

Commit

Permalink
TASK: Migrate Neos.Neos:FallbackNode to fusion
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Oct 12, 2023
1 parent 9df250c commit 59f51d5
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 59f51d5

Please sign in to comment.