-
-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4599 from neos/task/migrateFallbackNodeToFusion
TASK: Migrate `Neos.Neos:FallbackNode` to fusion
- Loading branch information
Showing
2 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
15 changes: 13 additions & 2 deletions
15
Neos.Neos/Resources/Private/Fusion/Prototypes/FallbackNode.fusion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
` | ||
} |
10 changes: 0 additions & 10 deletions
10
Neos.Neos/Resources/Private/Templates/FusionObjects/FallbackNode.html
This file was deleted.
Oops, something went wrong.