Closed bebeGit closed 7 months ago
Hi @bebeGit, you're right, ImmediateAction
is only available for v10+. However I didn't want to maintain an additional JS file, so I added a version check before using it, see FocuspointWizard.js@v3.0.4. The error during import is not nice, but does not crash the rest of the application.
Do you encounter great problems?
Hey Maik , thanks for replying that fast and especially for clearing things up. But I have to insist. Trying to open the focuspoint editor in the backends content element leads to following error:
Uncaught Error: Script error for "TYPO3/CMS/Backend/ActionButton/ImmediateAction", needed by: TYPO3/CMS/BwFocuspointImages/FocuspointWizard
I didn't try it in TYPO3 > 9 yet but in 9 it works wrapping the immediateAction call with:
require(['TYPO3/CMS/Backend/ActionButton/ImmediateAction'], function (ImmediateAction) {
...
});
while getting rid of calling it in define block.
Hey @bebeGit, cool! Didn't think about putting the import into the condition. Have you installed the sources and could create a PR?
Fixed in v3.0.5
https://github.com/maikschneider/bw_focuspoint_images/blob/dc9ec10aec0965a30b8750e2edc2e9683b0612de/Resources/Public/JavaScript/FocuspointWizard.js#L13
TYPO3/CMS/Backend/ActionButton/ImmediateAction only available since 10.4 as i am aware